Commenter Steven asked in response to my article on how not to delete local user profiles for the correct way to script the deletion of user profiles. Here is how. For completeness sake I start with the manual method.
Deleting Profiles Manually:
- Open the control panel applet "System Properties" and navigate to the tab "Advanced". I know of the following shortcuts for this often needed dialog box:
- Press Win+Break
- Press Win+R to open the run dialog box. Type in control sysdm.cpl,,3 and press enter. Note there must not be entered a space in front of the commas.
- Click on the settings button in the user profiles section.
- In the dialog that appears, choose the appropriate user profile and click on delete. Note: you must be an administrator for the delete button to even show up. And: you cannot delete your own profile.
Deleting Profiles Automatically
To learn more and to read the entire article at its source, please refer to the following page, Deleting User Profiles - Correctly at Helge Klein