Remove user from custom Windows 8.1 image
Hello

I have captured a custom Windows 8.1 image from my computer. A lot of programs have been integrated, to save time installing next time. But when installing the custom image, my previous user account is included. How do I remove this from install.wim?
November 29th, 2013 10:23am

Is it on a domain? Just create a GPO with a GPP and then take a look at the "users" task. There you can delete users on local machines. Take care that the gpp is only applied once ;)
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2013 1:53pm

First, activate the built-in administrator account by typing net user administrator P@$$W0rd! /active:yes at an elevated command prompt (replace "P@$$W0rd!" with a password of your choosing).  

Reboot and login as the actual, built-in administrator account (It's best to do a reboot to ensure there are no locked regkeys and such).  Remove the unwanted user account(s) (there are several methods to do so) along with the user's directory.  What I do is the following:

  • net user PreviousUserAccount /delete
  • rmdir /s /q \users\PreviousUserAccount
  • Delete the profile key from: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

You can just as easily and quickly use the Accounts GUI to achieve the same result.

Once all of that is done, do your sysprep and capture your wim file.

November 29th, 2013 11:31pm

Thanks.. just what I missed before I did the capture.
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2013 6:53am

First, activate the built-in administrator account by typing net user administrator P@$$W0rd! /active:yes at an elevated command prompt (replace "P@$$W0rd!" with a password of your choosing).  

Reboot and login as the actual, built-in administrator account (It's best to do a reboot to ensure there are no locked regkeys and such).  Remove the unwanted user account(s) (there are several methods to do so) along with the user's directory.  What I do is the following:

  • net user PreviousUserAccount /delete
  • rmdir /s /q \users\PreviousUserAccount
  • Delete the profile key from: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

You can just as easily and quickly use the Accounts GUI to achieve the same result.

Once all of that is done, do your sysprep and capture your wim file.

  • Marked as answer by LasseMandrup Saturday, November 30, 2013 11:44 AM
November 30th, 2013 7:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics