Solved

I am trying to undo the effects of Sysprep.exe on Windows Server 2008.

Posted on 2010-08-19
8
4,448 Views
Last Modified: 2012-05-10
while trying to configure Windows Deployment Services in Windows Server 2008 Enterprise, I made an error using Sysprep.exe to create a boot image that would be used to boot up in to a another new installation of the Windows Server 2008 in Dell PE2650. The latter does not have a DVD ROM, and I could not use the Win 2K08 DVD to do an install. So, I tried this cute setup, while tired, hungry and exhausted I might add and created a whole set of problems on the domain controller. This morning, I restarted the domain controller only to find out that it was starting a mini-setup wizard, trying to change the SID and so forth. I to stoped it on its track before it did further damage. Anyone can suggest how I can recover to the original state , before or just after I added the WDM server role and before configuring  the role? Would appreciate any help.

Note: Microsoft has KB articcle 287506 where it outlines a solution on how to disable the mini-setup wizard on which SYSPREP.EXE was used. But the solution was designed for Windows Server 2000. The artilce states that it sysprep.exe makes changes to the registry  to load SETUPCL.EXE, which starts the mini-setup wizard. I tried to locate a regitry entry for the SETUPCLE.EXE. I could not find any. Which could mean that SYSPREP.EXE doest it  differently in Widows Server 2008. Here is link for KB287506. Assume I have no backup of system or registry files. I am booting Win 2K08 from a VMWare.  I have tried the usual "Last KNown Good Configuration". No dice. Your suggestions are appreciated. Here is a link to the KB article. http://support.microsoft.com/kb/287506
0
Comment
Question by:modathir
8 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
Don't know how to address the issue at hand, but do you have a VMWARE snapshot of the system prior to you running sysprep.
Since this is a domain controller, rolling back a VMWARE snapshot might not be helpful if there are other DCs.  Be very careful.

In the registry, you may want to look for runonce etc. type of setting.
Also check the boot directive or perhaps the master boot record.
0
 
LVL 5

Author Comment

by:modathir
Comment Utility
Hi, thanks for your attention. The VMWARE is a non-issue at this point. It is not the source of the cause. It is doing a good job as a platform. It is loading ntloader fine, after which the problem starts. But the cause of the Win2K08 bootup failure is directly related to registry changes made by running the Sysprep.exe. Trouble is, I dont know what changes it made. The microsoft article I linked to shows a roadmap for an exact problem in Windows 2000 server. Mine is 2008. And the culprit cited in the solution is Setupcpl.exe, an entry for which I did not find in the Win2K08 registry. So, I am stuck. My hunch is Sysprep.exe works differently in Win2K08 than it does in Win2K.
So, it appears my options are 1. Let the mini-setup wizard take its course and determine what comes next. or, 2. Roll back the OS to the pre Sysprep.exe configuration changes. The latter is my choice if I can know how to roll it back. Alternately, I will see if there is a way to let Win2K08 startup repair.
0
 
LVL 23

Expert Comment

by:ComputerTechie
Comment Utility
I recommend the RollBack option. Letting the mini-setup wizard finish and you might not recover.

CT
0
 
LVL 38

Expert Comment

by:Adam Brown
Comment Utility
Sysprep, unfortunately, can't be undone. A big part of the sysprep operation is the removal of all SIDs on the system, which makes syspreping a Domain Controller completely disastrous. There is no System Recovery in Windows 2008, so you will need to restore the server from a backup. This can be a pretty involved process and involves reinstalling the OS on a clean server. If your system *is* running on VMWare, you really should restore from a snapshot if you have one. Here's a link with info on performing a system recovery for a Domain Controller: http://technet.microsoft.com/en-us/library/cc772519%28WS.10%29.aspx  
If you don't have a recent backup of your server, I hate to say it but you're pretty much hosed.
0
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 
LVL 38

Expert Comment

by:Adam Brown
Comment Utility
To clarify, when I say there is no system recovery in windows 2008, I mean that there is no option available to roll back to a previous time as you can with Windows XP/Vista/7. Such a feature, if included on a server, could have some very disastrous consequences if used on an important server. Thus, Microsoft chose to leave it out of the system.
0
 
LVL 5

Author Comment

by:modathir
Comment Utility
To acbrown2010: the solution you proposed requires that you " have a full server backup available." I stated in my first post that I do not have backup and this was a new DC config. And I am aware there is no option in Win2K08 for system recovery a la Win XP, or Vista.
The mini-setup wizard is being started at bootup due to changes that were made by sysprep.exe to the registry. There is no other explanation. So, the trick is to find what changes were made in the registry and reinstate them to what they were before. As I stated, there is an identical symptom and solution to Windows Server 2000 explained in MS KB article. But it states there is an entry for Setupcl.exe run during bootup, which starts the mini-setup wizard. However I have not found such entry in the registry of the Win2K08 DC. I searched thorougly.
So, the trick is to determine the exact changes. And they are very specific.
Does anybody know if Windows Server routinely creates a backup copy of its registry?
 
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
If this is the only DC for the domain, you're completely s.o.l., I'm afraid; the domain will have to be rebuilt from scratch.
One of the first things Sysprep does when it's run on a domain member is to remove the domain membership. In other words: this DC already isn't a domain member anymore. Even if you were to find a way to deactivate the mini-setup wizard, it would be a moot point, since there is absolutely no way to get AD running anymore.
What is Sysprep?
http://technet.microsoft.com/en-us/library/cc721940(WS.10).aspx
"Sysprep runs only if the computer is a member of a workgroup, not a domain. If the computer is joined to a domain, Sysprep removes the computer from the domain."

If you have another DC, you can clean out the meta data of the sysprepped DC on the other DC, seize all FSMO roles, finish the setup wizard, rejoin the machine to the domain, and run dcpromo again.
0
 
LVL 5

Accepted Solution

by:
modathir earned 0 total points
Comment Utility
I Just completed the Wizard. Nothing happend after that! everthing was working fine.
Thank everyone!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have been working as System Administrators since 2003. I recently started working as a FreeLancer and was amazed to find out that very few people are taking full advantage of their Windows Server Machines. Microsoft Windows Server comes with so…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now