none
Unattend.XMl : Fails during setting prestaged Computer Name deployed by WDS

    Question

  • Hi All,

    I am trying to set a prestaged computer name with <ComputerName>%MACHINENAME%</ComputerName>

    But it Seems it doesnot like <ComputerName>%MACHINENAME%<ComputerName>

    If I delete the entire line it works fine and generates the random machine name.

    Any help would be really appreciated.

    regards,

    Ram.



     
    • Edited by RAMZ30 Thursday, March 08, 2012 12:04 AM
    Thursday, March 08, 2012 12:01 AM

Answers

  • Hi Guys,

    Thank you all.

    I got it working. Made changes to server client configuration and havent restarted the service. After I restarted the service and recreated the wds unattend it worked.

    I thought for 2008R2 you donot have to restart the service after you make changes.

    But I guess I'm worng.

    regards,

    ram.

    • Marked as answer by RAMZ30 Wednesday, March 14, 2012 4:26 AM
    Wednesday, March 14, 2012 3:01 AM

All replies

  • Hi,

    Could you please explain more what you trying to achive? If you want to set a specefic name as PC name then you can achive this in connection with OOBE.XML.

    Here you can enter the ComputerName value and your machine will get that name instead of having a random name..


    N.A.Malik

    Thursday, March 08, 2012 6:32 AM
  • Hi,

    I have prestaged the Machine name in AD. And trying to get the same name applied to the machines tat are being build via wds. For some reason The unattended.xml  doesn't like to have anything <ComputerName>%MACHINENAME%</ComputerName> or <ComputerName>*</computerName> or <ComputerName></ComputerName> 

    If I delete the entire line from unattend.xml it will finish the deployment successfully but generates a random nam.

    I have provided all my customisations below any help will be really appreciated.

    BootStrap.ini

    [Settings]
    Priority=Default

    [Default]
    DeployRoot=\\111111\DeploymentShare$
    UserID=xxxxxxx
    UserDomain=xxxxxxx
    UserPassword=xxxxxxxx

    SkipBDDWelcome=YES

    SkipcomputerName=YES


    _SMSTSORGNAME=xxxxxxxxxxxx

    custom Settings.ini

    [Settings]
    Priority=Default
    Properties=MyCustomProperty

    [Default]
    OSInstall=Y
    SkipAppsOnUpgrade=YES
    SkipCapture=YES
    SkipAdminPassword=YES
    AdminPassword=xxxxxx
    SkipProductKey=YES
    SkipDomainMembership=YES
    JoinDomain=xxxxx
    DomainAdmin=xxxxxxxx
    DomainAdminDomain=xxxxxxxxxx
    DomainAdminPassword=xxxxxxxxxxxxxxx
    SkipcomputerName=YES
    ComputerName=%MACHINENAME%
    SkipLocaleSelection=YES
    SkipApplications=YES
    SkipTimeZone=YES
    SkipBitlocker=YES
    CaptureGroups=NO
    SkipProductKey=YES
    SkipComputerBackup=YES
    SkipUserData=YES
    SkipBDDWelcome=YES
    SkipTaskSequence=YES
    TaskSequenceID=T0004
    SkipFinalSummary=YES
    SkipSummary=YES

    Image Unattend.xml

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <ImageInstall>
                    <OSImage>
                        <WillShowUI>OnError</WillShowUI>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                        <InstallFrom>
                            <Path>.\Operating Systems\Windows7x86\T0002.wim</Path>
                            <MetaData>
                                <Key>/image/index</Key>
                                <Value>1</Value>
                            </MetaData>
                        </InstallFrom>
                    </OSImage>
                </ImageInstall>
                <UpgradeData>
                    <Upgrade>false</Upgrade>
                </UpgradeData>
                <Display>
                    <ColorDepth>16</ColorDepth>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
                <ComplianceCheck>
                    <DisplayReport>OnError</DisplayReport>
                </ComplianceCheck>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <ProductKey>
                        <Key>xxxXx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
                        <WillShowUI>Never</WillShowUI>
                    </ProductKey>
                </UserData>
                <EnableFirewall>false</EnableFirewall>
                <EnableNetwork>true</EnableNetwork>
            </component>
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SetupUILanguage>
                    <UILanguage>en-US</UILanguage>
                </SetupUILanguage>
                <InputLocale>0c09:00000409</InputLocale>
                <SystemLocale>en-AU</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-AU</UserLocale>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
                <StartPanelOff>true</StartPanelOff>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                <UnsecureJoin>true</UnsecureJoin>
                    <Credentials>
                        <Username>xxxxxxx</Username>
                        <Domain>xxxxxxx</Domain>
                        <Password>xxxxxxxx</Password>
                    </Credentials>
                    <JoinDomain>xxxxxxxxx</JoinDomain>
                    <JoinWorkgroup>xxxxxxx</JoinWorkgroup>
                 </Identification>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>%MACHINENAME%</ComputerName>   --> this is where the deployment bums out
                <ProductKey>xxxXx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey>
                <RegisteredOrganization>abcd</RegisteredOrganization>
                <RegisteredOwner>abcd</RegisteredOwner>
                <TimeZone>AUS Eastern Standard Time</TimeZone>
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <ShowWindowsLive>false</ShowWindowsLive>
                <StartPanelOff>false</StartPanelOff>
                <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
                <CopyProfile>false</CopyProfile>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Home_Page>about:blank</Home_Page>
                <IEWelcomeMsg>false</IEWelcomeMsg>
                <ShowCommandBar>true</ShowCommandBar>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <CompanyName>abcd</CompanyName>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>EnableAdmin</Description>
                        <Order>1</Order>
                        <Path>cmd /c net user Administrator /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>EnableAdmin_ploc</Description>
                        <Order>2</Order>
                        <Path>cmd /c net user Administrator_ploc /active:yes</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Description>UnfilterAdministratorToken</Description>
                        <Order>3</Order>
                        <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>0C09:00000409</InputLocale>
                <SystemLocale>en-AU</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-AU</UserLocale>
            </component>
            <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableSR>1</DisableSR>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>UABhAHMAcwB3AG8AcgBkADEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
                <AutoLogon>
                    <Enabled>true</Enabled>
                    <Username>Administrator</Username>
                    <Domain>.</Domain>
                    <Password>
                        <Value>UABhAHMAcwB3AG8AcgBkADEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <LogonCount>1</LogonCount>
                </AutoLogon>
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe C:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>1</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe D:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>2</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe E:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>3</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript.exe F:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>
                        <Description>Lite Touch new OS</Description>
                        <Order>4</Order>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                    <SkipUserOOBE>true</SkipUserOOBE>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <SkipMachineOOBE>true</SkipMachineOOBE>
                </OOBE>
                <RegisteredOrganization>abcd</RegisteredOrganization>
                <RegisteredOwner>abcd</RegisteredOwner>
                <TimeZone>AUS Eastern Standard Time</TimeZone>
                <ShowWindowsLive>false</ShowWindowsLive>
                <StartPanelOff>false</StartPanelOff>
                <DoNotCleanTaskBar>false</DoNotCleanTaskBar>
                <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>0C09:00000409</InputLocale>
                <SystemLocale>en-AU</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-AU</UserLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog://win-qp9tn7gu26j/deploymentshare-2$/operating systems/windows 7 x86- base image/sources/install_windows 7 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

     WDS Unattend.Xml

    <?xml version="1.0" encoding="utf-8" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
      <settings pass="specialize">
        <component name="Microsoft-Windows-UnattendedJoin" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
          <Identification>
            <UnsecureJoin>true</UnsecureJoin>
                    <Credentials>
                        <Username>xxxxxx</Username>
                        <Domain>xxxxxx</Domain>
                        <Password>xxxxx</Password>
                    </Credentials>
                    <JoinDomain>xxxxxx</JoinDomain>
                    <JoinWorkgroup>xxxxxx</JoinWorkgroup>
          </Identification>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <ComputerName>%MACHINENAME%<ComputerName>
        </component>
      </settings>
    </unattend>

    Thursday, March 08, 2012 7:00 AM
  • Hi,

    I am not sure they way you have adopted is applicable (<ComputerName>%MACHINENAME%</ComputerName>) but the other should be working without any issue, i.e;<ComputerName>*</computerName> or <ComputerName></ComputerName> 

    Anyways, if you want to have the specefic PC name for your computers then the method recommended by Microsoft is to use the MDT's Dynamic Settings feature. Here you make list of your PCs according to MAC or whatever you like, then whenever a machine with that MAC is booted for the OSD it will get the PC name that you have specefied. (You need to have SQL DB)
    If this is what you are looking for, spend some time and read the following articles, it will help you.

    http://blogs.technet.com/b/deploymentguys/archive/2011/08/05/dynamic-computer-naming-in-zti-deployments-using-mdt-and-configmgr.aspx

    Another post related to ADDS OU and PC name is available here:
    http://runebelune.blogspot.com/2011/03/generate-computer-names-in-mdt-2010sccm.html

    Hope that will work.


    N.A.Malik

    Friday, March 09, 2012 7:00 AM
  • Hi,

    There is one related discussion about how to join computer name account in AD with unattend.xml.

    Unattended Join Computer Name account in AD
    http://www.msfn.org/board/topic/89122-unattendedjoin-computername-account-in-ad/


    Another article about unattend can be referred to.

    Sample Unattend Files
    http://technet.microsoft.com/en-us/library/cc732280(v=ws.10).aspx

     

    Friday, March 09, 2012 9:17 AM
  • Hi Guys,

    Thank you all.

    I got it working. Made changes to server client configuration and havent restarted the service. After I restarted the service and recreated the wds unattend it worked.

    I thought for 2008R2 you donot have to restart the service after you make changes.

    But I guess I'm worng.

    regards,

    ram.

    • Marked as answer by RAMZ30 Wednesday, March 14, 2012 4:26 AM
    Wednesday, March 14, 2012 3:01 AM