Terms of Use For FixedByVonnie

By proceeding to access fixedByVonnie.com, you expressly acknowledge, and agree to, all of the following:

fixedByVonnie.com is a personal website and blog owned by Security Plus Pro LLC, which is being presented for informational purposes only. The views on this website are solely those of the website owner (and not those of any employer or of any professional associations affiliated with the website owner).  Any views expressed in this website and any information presented on this website, or in any of its blog entries, should not be relied on for any purpose whatsoever other than as the personal opinions of the website owner.  The website owner expressly disclaims any and all liability for any information presented on this site.  The owner of this website and its blog posts shall not be held liable, and shall be held harmless, for any errors or omissions in any information or representations contained in this website, or in any of its blog entries.  The website owner also expressly disclaims any liability for the current or future availability of any such information. The website owner makes no representations as to the accuracy or completeness of any information on this website or which may be found by following any link on this website. The website owner shall not be held liable for any losses, injuries, damages, claims, or causes of action, from the display or use of any information on this website or in any of its blog entries. If you use the information on this website, or on any of its blog entries, you do so solely at your own risk.

The best way to delete the user profile from a domain joined Windows PC - fixedByVonnie

The best way to delete the user profile from a domain joined Windows PC

Deleting user profiles from a domain joined PC?

Ha! Easy! All I need to do is zap the folder inside C:\Users that matches the username of the domain joined user.

Hmm, that sounds reasonable but it’s actually insufficient because vestiges of the registry remain and we need to axe those too.

Here are a few profile purging solutions that will leave your PC immaculate.

If you manually deleted the domain user folder from C:\Users we need to make clean up a few registry keys before we can call it day.

Key Chaos

Go ahead and open the Registry as an Administrator.  Press the Windows Key and enter


then right click it and choose Run as Administrator.

After backing up the registry we need to search for the domain account name but instead of  taking a hours to purse the entire registry, just click HKEY_USERS in the left pane, press Ctrl + f and enter the username of the account folder you just ousted.

Pay attention to the Security Identifier (SID) in the status bar at the bottom of the Registry Editor.  It should display a long, seemingly arbitrary, number that begins like this:


Registry SID

This SID denotes the registry key that contains that domain user’s preferences.  Let’s hunt it down so we can clean it up.

Oh, and I’ll refer to SID: S-1-5-21-3285709036-2449454244-3312884745-1105 as [SID] to save myself from typing this thing out.

Click through to:

 HKEY_USERS\[SID]\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Deleting this key wipes the user’s profile residue from your PC.

Delete Shell Folder containing user profile keys

You should also delete the corresponding SID key from the Profile List.

Click through the registry and select the [SID] you just sent to oblivion in the previous step.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\[SID]

I’m aware the SID is long and it’s hard to know if you’ve got the right one so I always like to verify that I’m deleting the right registy key by checking the ProfileImagePath in the right pane.

Windows Registry User Profile List

Here you can see it matches the account I want to remove so I can safely delete this key by right clicking the [SID] in the left pane and choosing Delete.

The Safer Microsoft Way

Press Windows Key + r to open the Run window then type


Sysdm.cpl (that’s a lowercase “L”) opens the System Properties screen from the command line.

There’s actually a whole array of common control panel tools you can kick off from the command line. Microsoft has published over two dozen popular control panel commands if you’re interested.  You can open everything from the Date/Time properties to your Internet Properties all from the Run box.

In the System Properties screen, click the Advanced tab and choose the middle Settings button to open your User Profile settings.

User Profile Settings in System Properties

Select the profile to zap and click the Delete button below it.

Deleting user profiles from Windows 8.1

Keep in mind that you need to be logged in as a local administrator and the user whose profile you wish to delete can’t be logged in.  That’s why the delete button is grayed out for me because I’m logged in as the to-be-deleted user.

Use Software

Is there an easier way?

There’s software out there that can alleviate the profile deletion tedium; however, I haven’t used these tools so I can’t really talk about it from experience.

That being said, Windows expert and software developer Helge Klein created a free tool that apparently deletes inactive user profiles in a cinch. His site is well documented and it looks pretty straightforward.

The tool is aptly called Delprof2 and can downloaded directly from Helge’s blog.

The Bottom Line

When you need to delete the user profile from a domain joined PC we need to do three things:

  • Delete C:\Users\[account name]
  • Delete HKEY_USERS\[SID]\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
  • Delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\[SID]

Alternately, we can run sysdm.cpl and delete the User Account from the User settings under the Advanced Tab.

Last of all, Helge Klein has a little tool that claims to do it all for you.

What method do you prefer when deleting domain user profiles?

Share in the comments below!


Connect with Vonnie on Twitter

Posted in Windows, Windows 7, Windows 8, Windows 8.1, Windows Vista Tagged with: ,
  • Thilo Langbein

    I prefer the WMI methode. It’s safer – especially on Windows 10++.