+ Post New Thread
Results 1 to 8 of 8
Windows 7 Thread, win 7 sysprep in Technical; ive just altered my normal x64 win 7 sysprep file to try and get it to autojoin a domain but ...
  1. #1


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,700
    Thank Post
    229
    Thanked 870 Times in 747 Posts
    Rep Power
    298

    win 7 sysprep

    ive just altered my normal x64 win 7 sysprep file to try and get it to autojoin a domain but ask for computer name does the following look right (as atm short of sysprepping my home pc/laptop (and i dont have a domain here anyway) does this look right to anyone?
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
                <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <DisableAccelerators>true</DisableAccelerators>
                <Home_Page>http://www.leedslearning.net</Home_Page>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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>0809:00000809</InputLocale>
                <SystemLocale>en-GB</SystemLocale>
                <UserLocale>en-GB</UserLocale>
                <UILanguage>en-GB</UILanguage>
                <UILanguageFallback>en-GB</UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
                <RegisteredOrganization>some school</RegisteredOrganization>
                <RegisteredOwner>some school</RegisteredOwner>
                <TimeZone>GMT Standard Time</TimeZone>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" 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>
                    <Credentials>
                        <Domain>domain.local</Domain>
                        <Password>password</Password>
                        <Username>username</Username>
                    </Credentials>
                    <JoinDomain>domain.local</JoinDomain>
                    <MachineObjectOU>ou=staff domained laptops win7x64,dc=domain,dc=local</MachineObjectOU>
                </Identification>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:k:/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  2. #2
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,475
    Thank Post
    10
    Thanked 500 Times in 440 Posts
    Rep Power
    114
    You can't ask for a computer name *and* join the domain with the supplied sysprep. You either need to prestage the name or use something like mysysprep2 or script the join in a late stage.

    With the supplied tools, the join will happen BEFORE the computer name is changed. When this is changed in the oobe pass, then the machine account trust from the domain gets broken.

    Microsoft know, they don't care.

  3. Thanks to DMcCoy from:

    sted (1st July 2010)

  4. #3

    Join Date
    Apr 2008
    Location
    Bloomsburg
    Posts
    51
    Thank Post
    14
    Thanked 14 Times in 9 Posts
    Rep Power
    16
    You can actually have it prompt you for a computer name, and then in the oobe System phase run a powershell command to have it join to the domain, all it will ask you is for a valid PW. This is how we are currently setting up our Win7 PC's.

    Code:
    C:\windows\system32\windowspowershell\v1.0\powershell.exe -command "Add-Computer -domainname xxxx -cred xxxx\administrator"

  5. Thanks to ces973 from:

    sted (1st July 2010)

  6. #4


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,700
    Thank Post
    229
    Thanked 870 Times in 747 Posts
    Rep Power
    298
    thanks both its not essential it joins the domain but would be nice although sometimes with win7 ive found if i fore the image out from wds (using my old sysprep file basically the same without the domain bits) it will autoname them username1 and domain it without being asked if only it was consistent lol

  7. #5

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,702
    Thank Post
    863
    Thanked 663 Times in 436 Posts
    Rep Power
    501
    with WDS, you can set it so that unknown computers must be approved by an administrator
    this generates a Request ID, adds the PC to the Pending Devices container in WDS.. right click the ID and give it the appropriate name, this then creates the AD comptuer account and auto-names the PC during imaging.

    right click servername.domain.local then choose properties then set the PXE Response Tab as shown...

    wds-ad-approval.PNG

    It only does this the once..

    The ONLY caveat I have found is that if you delete a WDS-Staged Computer account, you need to wait 30 days before you can WDS it again, this is something to do with the WDS ID Database not syncing with AD...

  8. #6
    mhundley's Avatar
    Join Date
    Oct 2007
    Location
    Worcester
    Posts
    47
    Thank Post
    11
    Thanked 8 Times in 7 Posts
    Rep Power
    16
    The ONLY caveat I have found is that if you delete a WDS-Staged Computer account, you need to wait 30 days before you can WDS it again
    We had a similar issue and found that by using the following command it will clear things out and WDS will then give the machine an IP address and allow you to continue again.

    WDSUTIL /Delete-AutoAddDevices /DeviceType:ApprovedDevices

  9. #7

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,702
    Thank Post
    863
    Thanked 663 Times in 436 Posts
    Rep Power
    501
    Doesn't that delete all devices and force them to receive new request IDs ?

  10. #8
    mhundley's Avatar
    Join Date
    Oct 2007
    Location
    Worcester
    Posts
    47
    Thank Post
    11
    Thanked 8 Times in 7 Posts
    Rep Power
    16
    Quite probably, we were looking to continually rebuild a test machine and this was the only way we found to make it work.

    We are still in the learning stage though so any advice will be greatfully recieved, especially if we are committing a huge no no in using that command.

SHARE:
+ Post New Thread

Similar Threads

  1. Win 2003 32-bit > Win 2008 R2 64-bit
    By Chuckster in forum Windows Server 2008 R2
    Replies: 10
    Last Post: 18th February 2010, 04:47 PM
  2. Sysprep
    By Chuckster in forum Windows
    Replies: 16
    Last Post: 29th October 2009, 12:05 PM
  3. Sysprep help Please
    By Ste_Harve in forum Windows
    Replies: 25
    Last Post: 31st July 2008, 02:51 PM
  4. Sysprep
    By tosca925 in forum Windows
    Replies: 14
    Last Post: 7th April 2006, 01:53 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
  •