How to remove user accounts from Windows 7 registry after being incorrectly removed

Note: This usually needs to be done when the Windows 7 profile has been manually deleted and not properly removed – as Windows 7 uses a security identifier attached to the user account in the registry and this needs to be cleared as well

Note: It is also recommend making a backup of the registry before this change – and you may need to restart the PC for the registry entry to be able to be removed.


  1. Press Windows Key + R to open the Run dialog window.
  2. Type in: regedit and press Enter or click Ok
  3. Press yes to accept UAC prompt.
  4. Navigate to: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList
  5. This lists the SID (security identifier) that is linked to your account – scroll down the list and on the right hand side under CentralProfile and ProfileImagePath find the correct user profile you would like to remove.
  6. Once you have found the correct one – right click the SID key you would like to remove and select Delete.
  7. Exit out of the Registry Editor and restart the workstation – the user should now be able to login and generate a new profile folder and security identifier.

How to stop SysPrep from starting

Having issues with sysprep popping up all the time? Follow the instructions below to stop that annoyance from happening.

  1. Click Start
  2. Click Run
  3. Type: regedit
  4. Once the Registry Editor loads, navigate to: HKEY_LOCAL_MACHINESYSTEMSetup
  5. Now to the right you should see some registry entries which you need to edit.
  6. Change AuditInProgress to “0”
  7. Change cmdLine to “setup –newsetup”
  8. Change FactoryPreInstallInProgress to “0”
  9. Change MiniSetupInProgress to “0”
  10. Change SetupType to “0”
  11. Change SystemSetupInProgress to “0”

You are pretty much changing Yes I do want to run SysPrep to No I don’t want to.

  1. Finally, navigate to: HKEY_LOCAL_MACHINEMicrosoftFactory and delete Factory.

You are now safe to delete the SYSPREP folder where it may be (ie C:SYSPREP)

Remove NOD32 Password

Follow the steps below to remove your Nod32 password, useful when trying to uninstall and cannot remember what it is.

  1. Click Start
  2. Click Run
  3. Type: regedit
  4. Navigate to: HKEY_LOCAL_MACHINESOFTWAREEsetNodCurrentVersion
  5. Right click Package ID and select Delete
  6. Exit out of Registry Editor and attempt removal of Nod32