MSFN Forum: Resetting domain account after reimage - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Resetting domain account after reimage Rate Topic: -----

#1 User is offline   Deman 

  • Junior
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 12-December 06

Posted 27 September 2007 - 12:49 AM

Hi all

I'm currently looking for new ways of rejoining newly re-imaged computers back into the domain again and am wondering whether the following is doable somehow

1. Boot into WinPE2 and deploy image
2. Reset domain computer account (somehow)
3. Copy over modified sysprep.inf (for XP) or unattend.xml (for Vista) file which contains the proper computername
4. Reboot and allow sysprep to join the domain as the proper computername it's meant to be

If I'm lucky the bonus would be I wouldn't have to have a script to move the computer to it's proper OU and would also save myself a reboot (I'm currently using Netdom in conjunction with wsname which deletes the old domain computer allowing the rename to occur)

Apparently you can swap out Vista's unattend.xml file provided you do it before it reboots as others do this (not sure about XP) but I know/remember that if you were to try and join the domain using a computername that's already registered the domain controller will reject the request. So somewhere that domain computer will need to be reset

Is there anyway that this can be scripted and performed within WinPE2? I looked into Netdom /reset but I'm not sure if that will do it?

Cheers :)


#2 User is offline   GTOOOOOH 

  • Junior
  • Pip
  • Group: Members
  • Posts: 57
  • Joined: 21-February 06

Posted 27 September 2007 - 08:56 AM

Research NetDom.exe it's an MS tool, you don't need sysprep as long as you provide the correct PC name at some point before running netdom.

#3 User is offline   Mordac85 

  • Jack of all trades, master of none
  • PipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 26-January 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 28 September 2007 - 12:42 PM

I'm not sure if you're renaming an existing computer or changing the computername in the sysprep.inf/unattend.xml? Unless you could use something like cygwin to mount the newly imaged drive (and I'm not sure even that would work) I don't know how you could edit the respective file w/o a reboot. Of course you could script the computer account reset, OU move and image copy into a single step. It's difficult to merge everything into just a few steps since most operations require a reboot to implement your changes. What about using an inf/xml on a floppy/flash drive instead of on the imaged drive?

btw, from my experience on XP, you'll need to script the OU move if the computer account is already existing cuz MachineObjectOU in sysprep.inf doesn't work if the computer account already exists. Not sure about Vista tho, thankfully we're putting that off for a long time.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy