Wednesday, 11 November 2009

Sysprep Windows 2008 R2

Just wasted a day of my time troubleshooting an issue that was tracked back to being an issue with the Sysprep image of Windows Server 2008 R2 that I was using…

 

Basically it hadn’t been sysprep’d in the correct manner…

 

The issue I was seeing was the inability to add a domain user to a local group on a member server, the account would resolve OK but the user was not properly added.

I also received an error running the SharePoint 2010 config wizard:

 

An exception of type System.Security.Principal.IdentityNotMappedException was thrown.  Additional exception information: Some or all identity references could not be translated

 

This was generated after entering the SQL server name/DB and the Farm account credentials…

 

I had to throw away my DC, my SQL server and my SharePoint 2010 server…

 

Starting all over again :(

 

So, the correct sysprep method is as follows:

 

  1. Forget the GUI!
  2. Run (from elevated command prompt):

c:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /shutdown

 

image

 

This works fine…

 

-I am ignoring the spelling of “generalize” ;)

 

--EDIT--

 

Please note: the mini-setup that runs after booting a sysprep R2 image does not prompt for Computer name, you’ll have to change this manually. I would recommend not changing the computer name in the same operation as joining a domain, change the name and reboot, then join domain and reboot. This may no longer be an issue but I remember having issues in the Windows 2000 days with doing this and these kind of practices tend to stick with me ;)

9 comments:

  1. Sysprep in 2008R2 has other issues like it doesn't prompt for computer name during mini-setup. we have to use MDT or some other 3rd party tool to image and deploy 2008R2.

    ReplyDelete
  2. A valid point! Have updated the post to reflect this - many thanks!

    ReplyDelete
  3. What a life saver this find was. We spent a few days chasing the ghost. Thanks for the post!

    ReplyDelete
  4. Thanks Matt, it is really worked :)

    ReplyDelete
  5. I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read!! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site. cheap rdp

    ReplyDelete
  6. Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best! windows 10 error

    ReplyDelete

Please feel free to comment on this post, I want to hear your feedback!