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?
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 a few seconds ago
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