+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
Windows 7 Thread, Problems with our Windows 7 unattended image answer file in Technical; I am trying to update our windows 7 deployment so we can pre-stage all the computers How every changing our ...
  1. #1
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26

    Problems with our Windows 7 unattended image answer file

    I am trying to update our windows 7 deployment so we can pre-stage all the computers

    How every changing our unattended file is not going well. We use to have the answer file prompt for a computer name and join to the workgroup. And then a power script on logon to join it to the domain.

    Whats wrong with this script, im trying to make it join the domain automatically using the computer name that was pre-staged

    </component>
    <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Identification>
    <Credentials>
    <Domain>DOMAINNAME</Domain>
    <Username>USERNAME</Username>
    <Password>PASSWORD</Password>
    </Credentials>
    <JoinDomain>DOMAINNAME</JoinDomain>
    </Identification>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>0809:00000809</InputLocale>
    <SystemLocale>en-gb</SystemLocale>
    <UILanguageFallback>en-gb</UILanguageFallback>
    <UserLocale>en-gb</UserLocale>
    <UILanguage>en-gb</UILanguage>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <AutoLogon>
    <Password>
    <Value>PASSWORD</Value>
    <PlainText>true</PlainText>
    </Password>
    <Username>USERNAME</Username>
    <LogonCount>1</LogonCount>
    <Enabled>true</Enabled>
    <Domain>DOMAIN</Domain>
    </AutoLogon>
    <OOBE>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    <SkipMachineOOBE>false</SkipMachineOOBE>
    <SkipUserOOBE>false</SkipUserOOBE>
    </OOBE>
    <UserAccounts>
    <AdministratorPassword>
    <Value>PASSWORD</Value>
    <PlainText>true</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>PASSWORD</Value>
    <PlainText>true</PlainText>
    </Password>
    <DisplayName>USERNAME</DisplayName>
    <Group>Administrators</Group>
    <Name>USERNMAE</Name>
    <Description>Local Administrator</Description>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <ComputerName>%MACHINENAME%</ComputerName>
    <RegisteredOrganization>The Ockendon Academy</RegisteredOrganization>
    <RegisteredOwner>ICT</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>GMT Standard Time</TimeZone>
    </component>
    </settings>
    <cpifflineImage cpi:source="catalog:d:/sources/install_windows 7 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  2. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,304
    Thank Post
    242
    Thanked 1,589 Times in 1,266 Posts
    Rep Power
    344
    If you use MySysprep2 and search the forum for the answer file I use, you can prompt for a computer name and then join the domain in one process.

  3. #3
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    we can prompt the setup for a computer name on how old unattended file without even using mysysprep2

    What im trying to do is make wds imput the name that was pre-staged already in dc and join to the domain.

    Any ideas?

    I think the only thing I changed in this file, was copied this part from you post about mysysprep2

    <Identification>
    <Credentials>
    <Domain>DOMAINNAME</Domain>
    <Username>USERNAME</Username>
    <Password>PASSWORD</Password>
    </Credentials>
    <JoinDomain>DOMAINNAME</JoinDomain>
    </Identification>

    and added the computer name line, which was removed before for it to prompt for a pc name

    <ComputerName>%MACHINENAME%</ComputerName>

    Reading from TechNet it says to use %machinename% for it to pass the name I already set in WDS

    "Setting ComputerName to %MACHINENAME% will pass through the name you set in WDSs Name and Approve. Set TimeZone to your correct time zone, such as Mountain Standard Time. (Note: See technet.microsoft.com/library/cc749073(WS.10)for a list of applicable time zone strings.)"

  4. #4

    Join Date
    Jan 2010
    Posts
    113
    Thank Post
    3
    Thanked 20 Times in 20 Posts
    Rep Power
    13
    How exactly are you prestaging? The variable you've got is correct. We use the GUID of Twenty 0s and then the MAC address.

    In ADUC turn on View->Advanced features. Then bring up the properties of the machine->Attribute Editor tab->netbootGUID attribute. What does it say. For me it's 0000000....MACADDRESS. Have the machines got netbootGUIDs that correspond to the machine or are they <not set>?

    With Server 2008 R2 the option for prestaging wasn't available in ADUC when creating the computer account, but could be done from WDSUTIL on the command line.
    e.g. How to prestage a computer in Server 2008 R2?

    The end of the unattend file could look something like this:
    <settings pass="specialize">
    <component name="Microsoft-Windows-UnattendedJoin".....
    <Identification>
    <Credentials>
    <Domain>YOUR DOMAIN</Domain>
    <Password>Join account password</Password>
    <Username>Domain Joining account</Username>
    </Credentials>
    <JoinDomain>YOUR DOMAIN</JoinDomain>
    </Identification>
    </component>

    <component name="Microsoft-Windows-Shell-Setup"....
    <RegisteredOrganization>YOUR ORG</RegisteredOrganization>
    <RegisteredOwner>YOUR OWNER</RegisteredOwner>
    <TimeZone>GMT Standard Time</TimeZone>
    <ComputerName>%MACHINENAME%</ComputerName>
    </component>
    </settings>
    Last edited by jtotheb; 16th March 2012 at 11:58 AM.

  5. #5
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    With pre-staging, I have set the WDS mode to require approval from an admin, So when a new computer hits the server I click name and approve (saves entering the GUID or MAC on every computer)

    Just looked at the computer I approved and named eariler, this is what the WDS entered {A0547C0F-F79E-DD11-A70E-001E3374A873}

    You can create the computer account in ADUC if the console is installed on the WDS server (Of course this requires you to do this on you WDS server)
    Last edited by pritchardavid; 16th March 2012 at 11:56 AM.

  6. #6

    Join Date
    Jan 2010
    Posts
    113
    Thank Post
    3
    Thanked 20 Times in 20 Posts
    Rep Power
    13
    Quote Originally Posted by pritchardavid View Post
    With pre-staging, I have set the WDS mode to require approval from an admin, So when a new computer hits the server I click name and approve (saves entering the GUID or MAC on every computer)

    Just looked at the computer I approved and named eariler, this is what the WDS entered {A0547C0F-F79E-DD11-A70E-001E3374A873}

    You can create the computer account in ADUC if the console is installed on the WDS server (Of course this requires you to do this on you WDS server)
    So did that machine join the domain, but with a generic name? Or it got renamed but didn't join? Or it didn't join or rename?

  7. #7
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    The computer account was only added to the domain, the laptop failed during system setup. There is something wrong with this file!

    edit - it said at the - 'settings pass="specialize'
    Last edited by pritchardavid; 16th March 2012 at 12:18 PM.

  8. #8
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,491
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114
    All you need for a prestaged machine to join is this:

    <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>
    </Identification>
    </component>

  9. #9
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    Hi DMCCoy - thanks for that

    Now my question is what about prestaged machines that you don't want to join the domain? You want WDS/ADUC to provide the computer name instead of manually typing it in. Can this be done.

    I'll edit the file again and try what you just said#


    EDIT: Does the rest of the file look ok?
    Last edited by pritchardavid; 16th March 2012 at 12:30 PM.

  10. #10
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,491
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114
    you can manually prestage with wds util and set the domain join option to no. I also customise the registry values for the account creation to that of the user I use for the unattended deployment. ( HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\WDSServer\Providers\WDSPXE\Providers\BINLSVC\Au toApprove\<arch>)

  11. #11
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    any chance you can post what you got for you image unattended file please? of course blanking out any details for security

  12. #12
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,491
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114
    A couple of important notes:

    The process does NOT add any user accounts, all you need is a user operation, in this case the domain group "SysAdmin users" is added to the local administrators group.
    The autologon was to allow ATI drivers to complete installation and to activate CS4
    The admin account is disabled and the screen is then locked.

    Edit as required



    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <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">
                <OEMInformation>
                    <Manufacturer>School Name</Manufacturer>
                    <Model>Machine Model</Model>
                    <SupportURL>http://www.microsoft.com</SupportURL>
                    <HelpCustomized>true</HelpCustomized>
                </OEMInformation>
                <WindowsFeatures>
                    <ShowInternetExplorer>true</ShowInternetExplorer>
                    <ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
                    <ShowMediaCenter>false</ShowMediaCenter>
                </WindowsFeatures>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
                <ComputerName>%MACHINENAME%</ComputerName>
                <CopyProfile>true</CopyProfile>
                <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <RegisteredOrganization>School Name</RegisteredOrganization>
                <RegisteredOwner>ICT</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>GMT Standard Time</TimeZone>
            </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>
            <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>
                </Identification>
            </component>
            <component name="Security-Malware-Windows-Defender" 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">
                <DisableAntiSpyware>true</DisableAntiSpyware>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <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>en-GB</InputLocale>
                <SystemLocale>en-GB</SystemLocale>
                <UILanguage>en-GB</UILanguage>
                <UILanguageFallback>en-GB</UILanguageFallback>
                <UserLocale>en-GB</UserLocale>
            </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">
                <OEMInformation>
                    <Manufacturer>School Name</Manufacturer>
                    <Model>Machine Model</Model>
                    <SupportURL>http://www.microsoft.com</SupportURL>
                    <HelpCustomized>true</HelpCustomized>
                </OEMInformation>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <DomainAccounts>
                        <DomainAccountList wcm:action="add">
                            <DomainAccount wcm:action="add">
                                <Group>Administrators</Group>
                                <Name>SysAdmin Users</Name>
                            </DomainAccount>
                            <Domain>domain.name</Domain>
                        </DomainAccountList>
                    </DomainAccounts>
                </UserAccounts>
                <VisualEffects>
                    <FontSmoothing>ClearType</FontSmoothing>
                </VisualEffects>
                <WindowsFeatures>
                    <ShowInternetExplorer>true</ShowInternetExplorer>
                    <ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
                    <ShowMediaCenter>true</ShowMediaCenter>
                </WindowsFeatures>
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
                <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
                <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                <RegisteredOrganization>School Name</RegisteredOrganization>
                <RegisteredOwner>ICT</RegisteredOwner>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>GMT Standard Time</TimeZone>
                <AutoLogon>
                    <Password>
                        <Value>encryptedpasswordhere</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <LogonCount>1</LogonCount>
                    <Username>Administrator</Username>
                </AutoLogon>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>rundll32.exe user32.dll, LockWorkStation</CommandLine>
                        <Description>Lock Machine</Description>
                        <Order>1</Order>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>shutdown /r /t 300</CommandLine>
                        <Description>Shutdown</Description>
                        <Order>2</Order>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>net user administrator /active:no</CommandLine>
                        <Description>Disable Admin Account</Description>
                        <Order>3</Order>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>%ProgramFiles%\Adobe\Adobe Photoshop CS4\Photoshop.exe</CommandLine>
                        <Description>Activate Adobe</Description>
                        <Order>4</Order>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog://agamemnon/vsources/install_windows 7 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  13. Thanks to DMcCoy from:

    pritchardavid (16th March 2012)

  14. #13
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    Thanks a lot

    ok here is what I got now after looking at yours and changing mine

    Is the setup it gets a problem at the "specialize" pass

    Any ideas?

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ComputerName>%MACHINENAME%</ComputerName>
    <RegisteredOrganization>The Ockendon Academy</RegisteredOrganization>
    <RegisteredOwner>ICT</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>GMT Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Identification>
    <UnsecureJoin>true</UnsecureJoin>
    </Identification>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-GB</InputLocale>
    <SystemLocale>en-GB</SystemLocale>
    <UILanguage>en-GB</UILanguage>
    <UILanguageFallback>en-GB</UILanguageFallback>
    <UserLocale>en-GB</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Group>Administrators</Group>
    <Name>The Ockendon Academy</Name>
    <Password>
    <Value>password</Value>
    <PlainText>true</PlainText>
    </Password>
    <DisplayName>The Ockendon Academy</DisplayName>
    <Description>Local Administrator</Description>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization>The Ockendon Academy</RegisteredOrganization>
    <RegisteredOwner>ICT</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>GMT Standard Time</TimeZone>
    <AutoLogon>
    <Password>
    <Value>password</Value>
    <PlainText>true</PlainText>
    </Password>
    <Username>username</Username>
    <LogonCount>1</LogonCount>
    <Enabled>true</Enabled>
    <Domain>theockendonacademy.com</Domain>
    </AutoLogon>
    </component>
    </settings>
    <cpifflineImage cpi:source="catalog:d:/sources/install_windows 7 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  15. #14
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,491
    Thank Post
    10
    Thanked 502 Times in 442 Posts
    Rep Power
    114
    Press shift-F10 on the failed install to open command prompt. Then run notepad and have a look at the C:\Windows\Panther\UnattendGC\setuperr.log

    This should contain the reason for the failure.

  16. #15
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    damn the setuperr.log is empty!



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 16
    Last Post: 5th January 2012, 05:11 PM
  2. BIG problem with our server!
    By Dukey in forum Windows Server 2000/2003
    Replies: 18
    Last Post: 22nd July 2011, 12:49 PM
  3. Problem with our intranet page and firefox
    By gh256 in forum Network and Classroom Management
    Replies: 4
    Last Post: 24th April 2008, 04:46 PM
  4. Help with unattended answer file.
    By Kyle in forum Windows
    Replies: 3
    Last Post: 5th November 2006, 07:40 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •