Wednesday, 27 May 2015

Windows 7: Accidently ran SysPrep, need to restore Windows 7 desktop

Hi Ramon, welcome to the Seven Forums. 

Accidentally open the Sysprep dialog then also accidentally select the Generalize option which is disabled (not selected) by default, and then accidentally click OK to run Sysprep instead of clicking Cancel or simply closing the dialog. I do not know what to say .

But, seriously, nothing irreparable has happened. In fact the only thing that has happened is that the Generalize switch has removed all hardware related information and drivers as well as theme personalizations and customizations, replacing them with the same general non hardware specific drivers Windows uses when first time installed, and with Windows general theme. All your data is still there, as well as installed software, everything intact.

An OOBE (Out-Of-Box Experience) Mode also known as Welcome Mode is the first boot after Windows has been installed. OOBE boot assumes it is the first time ever your Windows PC has been booted up and that it has no user profiles, no computer name and so on. Although you run Sysprep on an existing system which causes an OOBE boot to be run and there in fact exists an user account (or several accounts), OOBE does not know this. 

Simply do what OOBE wants you to do, give it a computer name and a username. For computer name you can use the same name you had earlier if you want to but you can also pick a new name. 

For the username you cannot use any existing usernames. Using myself as an example: My Windows username is Kari. If I run sysprep which makes Windows to run an OOBE boot, Windows flags the user profile Kari as reserved and does not let me to use it on OOBE:
To work around this I simply create a dummy user here naming it Dummy, then when Windows finally shows the Welcome / Logon screen I select my old existing user account Kari to log in and first thing after entering the desktop, I go toControl Panel > Users and delete the user Dummy.

To put the above very short:
  • Name your PC as you wish
  • Use a temporary dummy user account naming it as you wish
  • When on Welcome / Logon screen, select your old user account to log in
  • Delete the temporary dummy user account
Notice that you also need to re-activate your Windows 7 so find your product key, and if you had enabled the built-in administrator account the Generalize switch has disabled it and you need to re-enable it if needed. 

When finally on your desktop you'll find that all software and personal data is there, intact. However, all your personalizations and customizations are gone (theme, colors, sound scheme), Windows is using the default theme and wallpaper instead so you need to set your customized theme, wallpaper, sounds etc. again.

You might need to reinstall a few drivers (for example chipset, video, audio, USB3), check Device Manager for possibly missing drivers as the Generalize switch you used with Sysprep removed everything hardware specific. Windows 7 is pretty good in finding correct drivers so usually there's no need or very little need to reinstall drivers. Also check optional Windows Updates to see if WU offers some driver updates.

For a useful way to use Sysprep with Generalize switch, see this tutorial: Windows 7 Installation - Transfer to a New Computer. At the end of the tutorial you'll find an info box telling exactly what sysprepping with the generalize switch does to your Windows.

Kari

No comments:

Post a Comment