pritchardavid Posted March 16, 2012 Posted March 16, 2012 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 DOMAINNAME USERNAME PASSWORD DOMAINNAME 0809:00000809 en-gb en-gb en-gb en-gb PASSWORD true USERNAME 1 true DOMAIN true true Work 1 false false PASSWORD true PASSWORD true USERNAME Administrators USERNMAE Local Administrator %MACHINENAME% The Ockendon Academy ICT false GMT Standard Time
Michael Posted March 16, 2012 Posted March 16, 2012 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.
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 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 DOMAINNAME USERNAME PASSWORD DOMAINNAME and added the computer name line, which was removed before for it to prompt for a pc name %MACHINENAME% 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.)"
jtotheb Posted March 16, 2012 Posted March 16, 2012 (edited) 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 ? 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: YOUR DOMAIN Join account password Domain Joining account YOUR DOMAIN YOUR ORG YOUR OWNER GMT Standard Time %MACHINENAME% Edited March 16, 2012 by jtotheb
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 (edited) 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) Edited March 16, 2012 by pritchardavid
jtotheb Posted March 16, 2012 Posted March 16, 2012 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?
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 (edited) 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' Edited March 16, 2012 by pritchardavid
DMcCoy Posted March 16, 2012 Posted March 16, 2012 All you need for a prestaged machine to join is this: true
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 (edited) 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? Edited March 16, 2012 by pritchardavid
DMcCoy Posted March 16, 2012 Posted March 16, 2012 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\Services\WDSServer\Providers\WDSPXE\Providers\BINLSVC\AutoApprove\)
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 any chance you can post what you got for you image unattended file please? of course blanking out any details for security
DMcCoy Posted March 16, 2012 Posted March 16, 2012 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 School Name Machine Model http://www.microsoft.com true true true false false %MACHINENAME% true false true School Name ICT false GMT Standard Time 1 true true en-GB en-GB en-GB en-GB en-GB School Name Machine Model http://www.microsoft.com true true true Work 1 Administrators SysAdmin Users domain.name ClearType true true true false false true School Name ICT false GMT Standard Time encryptedpasswordhere false true 1 Administrator rundll32.exe user32.dll, LockWorkStation Lock Machine 1 false shutdown /r /t 300 Shutdown 2 false net user administrator /active:no Disable Admin Account 3 false %ProgramFiles%\Adobe\Adobe Photoshop CS4\Photoshop.exe Activate Adobe 4 false 1
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 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? %MACHINENAME% The Ockendon Academy ICT false GMT Standard Time true en-GB en-GB en-GB en-GB en-GB true true Work 1 Administrators The Ockendon Academy password true The Ockendon Academy Local Administrator The Ockendon Academy ICT false GMT Standard Time password true username 1 true theockendonacademy.com
DMcCoy Posted March 16, 2012 Posted March 16, 2012 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.
pritchardavid Posted March 16, 2012 Author Posted March 16, 2012 (edited) ok all working now Must have been a problem with the laptop! I setup a virtual pc using hyper-v in the end. Ok that means that the domain answer file is sorted, it can finally grab the computer pc name from ADUC. ---------------------------------------------------------------------------------- Now the next step, how can I mod the above answer file so it continues to grab the pc name from ADUC but make it NOT join the domain, but join the WORKGROUP?? Is this even possible to do? Edited March 16, 2012 by pritchardavid
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now