DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
FREEDOM251

Freedom251 › Blog › PowerShell

Safely Remove Windows 10/11 User Profiles and Clean ProfileList Registry Entries

By Freedom251 Team · · 8 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The safest way to remove a normal Windows 10 or Windows 11 user profile is Control Panel → System → Advanced system settings → User Profiles → Settings, using a different administrator account. Edit HKLMSOFTWAREMicrosoftWindows NTCurrentVersionProfileList only when you are diagnosing an orphaned, duplicate, .bak, or temporary profile entry. Back up the registry first, identify the profile by its exact ProfileImagePath, and never delete a profile that is loaded.

Choose the right removal method first

Registry editing is not the general-purpose profile deletion method. Microsoft’s supported procedure removes a normal profile through the User Profiles dialog, while the registry is useful for investigating a leftover ProfileList entry after an incomplete deletion, a temporary profile, or a failed sign-in. The correct choice depends on what you are trying to accomplish.

As an Amazon Associate I earn from qualifying purchases.

Goal Best approach Profile may be loaded? What happens to files?
Remove a user normally User Profiles dialog No; sign out first Windows removes the profile through the supported workflow; preserve anything needed before deletion
Investigate an orphaned or duplicate registry entry Inspect ProfileList and use Microsoft’s cleanup script in report mode No; cleanup is for unloaded profiles Registry findings and folders must be assessed separately
Remove a confirmed orphaned registry reference Export the key, then delete only the verified SID subkey or use the cleanup script’s deletion switch No Removing the mapping does not substitute for preserving or separately removing the user folder
Free space from old profiles Microsoft’s aged-profile PowerShell script No; the script skips loaded profiles Profiles meeting the age rule can be deleted after you review the report
Recover from a corrupt profile Create a new administrator account and migrate files Use the old profile only while signed out of it Personal files can be copied; email, applications, and Store sign-ins may need separate work

Microsoft states that these operations require membership in the local Administrators group or delegated authority. Use an administrator account other than the profile you intend to remove.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prepare safely before touching the registry

  1. Sign out of the target account. Sign in with another administrator account. Do not attempt to delete the profile that is currently running your desktop, and check that no service or scheduled task is keeping it loaded.
  2. Confirm that the data is no longer needed. Check the user’s Desktop, Documents, Downloads, Pictures, application data, and any organization-specific folders. If the account is needed but only its profile is damaged, use the migration procedure below instead of deleting it.
  3. Export the registry key. Press Win+R, enter regedit.exe, and approve the elevation prompt. Browse to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList. Select the key, choose File → Export, and save the .reg file somewhere you can reach even if Windows later fails to sign in.
  4. Know how to undo the change. Registry Editor can restore the saved file with File → Import. Importing a backup does not replace a restart; reboot after restoring and check the affected sign-in.

A registry export is a safety net, not a substitute for identifying the correct profile. Never choose a SID because its number “looks like” the user’s. Match the path stored in that SID’s values to the actual profile folder.

Use the supported User Profiles dialog for a normal deletion

  1. Sign out of the profile being removed and sign in with a different administrator account.
  2. Open Control Panel. Set View by to Large icons, then select System.
  3. Choose Advanced system settings. In the System Properties window, open the Advanced tab.
  4. Under User Profiles, select Settings.
  5. Select the profile by its user-folder path and choose Delete, then confirm.
  6. Restart Windows and test the remaining accounts. Confirm that the intended profile folder and sign-in behavior are correct before removing any leftover data.

On Windows 10 and Windows 11, Microsoft notes that this documented Control Panel route may open the Settings experience for the profile operation. If the profile is in use, the Delete button can be unavailable or the operation can fail; sign out, close applications and services associated with the account, and try again from the separate administrator account.

Find the correct ProfileList entry

Open the exported-and-backed-up key at HKLMSOFTWAREMicrosoftWindows NTCurrentVersionProfileList. Each subkey normally has a security identifier (SID) such as S-1-5-21-…-1001. Select a SID and read its ProfileImagePath value. The value should identify the exact folder, for example C:UsersAlex. Use that path, not the final digits of the SID, to identify the account.

Finding What it can indicate Safe next step
ProfileImagePath points to the active, intact user folder A normal profile mapping Do not delete it while the profile is loaded. Use the supported User Profiles dialog for normal removal.
A SID key ends in .bak A failed or interrupted profile sign-in, often leaving an alternate registry entry Treat it as a diagnostic signal. Compare paths and loading state; do not delete solely because the suffix is present.
Two SID entries reference the same folder Duplicate or stale ProfileList information Verify which entry belongs to the account and whether either profile is loaded before changing anything.
The folder in ProfileImagePath is missing An orphaned registry reference, an intentionally moved folder, or a path problem Check backups and account ownership. A missing folder alone is not permission to erase the registry entry.
The folder lacks NTUSER.DAT or NTUSER.MAN A profile hive may be incomplete or the entry may be orphaned Use Microsoft’s cleanup script in report mode and investigate before enabling deletion.
A temporary (TEMP) profile or an unreferenced user folder is reported Windows may have created a temporary sign-in or left a folder without a valid registry mapping Save any needed files, sign out, and diagnose the corresponding ProfileList entries rather than deleting by folder name alone.

Microsoft’s ProfileList cleanup script checks for these conditions, including .bak entries, duplicate paths, missing profile folders, missing profile hives, orphaned ProfileGUID values, and unreferenced user folders. Those findings tell you what to investigate; they are not automatic approval to delete.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

Remove a confirmed orphaned registry entry manually

Use this procedure only after you have exported the key, confirmed the exact path, and established that the profile is not loaded and is no longer needed.

  1. In Registry Editor, remain at HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList.
  2. Open each candidate SID subkey and compare ProfileImagePath with the folder you investigated. Check whether a paired normal SID and .bak SID exist.
  3. Select only the SID subkey that you have positively identified as stale or orphaned. Right-click it, choose Delete, and confirm. Do not delete the entire ProfileList key.
  4. Close Registry Editor and restart Windows. Test sign-in with the affected and unaffected accounts.

Deleting a ProfileList subkey removes the registry mapping; it is not a secure erase of the folder. Keep the folder until you have recovered required files and confirmed that no application or account still depends on it. If the profile is still valid, the supported User Profiles dialog is safer than manually deleting its mapping.

Clean orphaned entries with Microsoft’s diagnostic script

For a machine with several stale entries, Microsoft provides a separate cleanup script for ProfileList information and temporary profiles. It examines the registry path, warns about .bak and duplicate references, detects missing folders and profile hives, and can inspect orphaned ProfileGUID entries and unreferenced user folders.

Rank #3
  • Run it first without -clean. The default behavior reports findings without deleting them.
  • Review every reported SID, path, folder, and hive. Confirm that the account is not loaded and that required files are backed up.
  • Use -clean only for entries you have verified as orphaned. A cleanup switch is an instruction to delete, not a repair for a currently used or corrupted profile.
  • Restart and verify sign-in behavior and the remaining profile folders.

If the script reports a legitimate profile as missing a file, stop and investigate. A damaged profile may need migration, while an absent folder may reflect a deliberate move or a backup restore rather than an orphan.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use the aged-profile script for old, unused accounts

Microsoft also documents a Windows 10 and Windows 11 PowerShell script that finds profiles unused for a specified period. It uses registry timestamps, which Microsoft describes as more reliable for this purpose than relying only on the NTFS timestamp of NTUSER.DAT. The script cleans only profiles that are not loaded when it runs.

The documented example targets profiles unused for at least 60 days:

Rank #4
Windows 11 Laptop with i3 Processor 15.6" Work Laptop for College Students | Backlit Keyboard WiFi 6 (2 cores, 4 Threads, up to 3.4GHz) 12GB RAM 256GB SSD TF Card Expandable to 2TB
  • 【Efficient Performance】 Powered by Intel Core i3 processor (2 cores, 4 threads, up to 3.4GHz) with 12GB RAM and 256GB SSD. Handles multitasking, office software, online classes, and HD video streaming smoothly. Integrated Intel UHD Graphics 620
  • Backlit Keyboard & Complete Package】Comes with a cool backlit keyboard. Comes with awebcam, dual stereo speakers (8Ω/1.0W each), DC charger, and user manual – ready for late-night studying, online classes, video conferencing, and daily productivity
  • 【Vibrant Display】 15.6-inch Full HD (1920x1080) anti-glare screen with 16:9 aspect ratio delivers crisp images and vivid colors – perfect for studying, watching lectures, or entertainment. Thin-bezel design maximizes viewing area
  • 【Fast Connectivity & Expansion】 Equipped with WiFi 6 (802.11ax) and Bluetooth 5.2 for stable, high-speed wireless. Features 3 x USB 3.0, HDMI 2.1, Type-C (supports PD3.0 fast charging), and a TF card slot expandable up to 2TB – easily connect external monitors, mice, drives, or expand storage for all your files
  • 【Long Battery Life & Portable】 Built-in 11.55V 5000mAh/57.75Wh high-capacity battery delivers approximately 7 hours of mixed-use battery life – enough for a full day of classes and assignments. Lightweight at just 1.63kg (3.6 lbs) and 19.5mm thin, plus a compact packing size – easily slips into a backpack for campus, library, or coffee shop
PowerShell -file ADDelProf.ps1 -Days 60 -Delete True
  • Run the script from an elevated PowerShell session with the required script file available.
  • Understand that -Days 60 is an age threshold, not proof that every matching profile is disposable.
  • Review the report before using -Delete True. Without the delete switch, the script reports by default.
  • Do not expect it to remove a profile that is loaded; its documented behavior excludes loaded profiles.

Microsoft labels this sample script unsupported under its standard support program and provides it “AS IS.” Treat it as an administrative aid: test the report, preserve required data, and use the supported GUI for an ordinary one-off deletion.

When deletion is the wrong fix: migrate a corrupted profile

A profile that signs in temporarily, rejects a password that works elsewhere, or repeatedly fails to load may be corrupted rather than orphaned. Microsoft’s recovery guidance for Windows 10 and Windows 11 is to create a new administrator account, copy the needed files from C:Users<Old_Username> to the new profile, restart, and sign in as the new user.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Create a new local administrator account while you can still sign in with an administrator.
  2. Sign out of the damaged profile and sign in to the new account.
  3. Copy the old profile’s personal files from C:Users<Old_Username> into the corresponding folders of the new profile. Do not blindly copy the old registry hive as a way to “repair” it.
  4. Restart and sign in again with the new account.
  5. Reconfigure applications and verify documents before retiring the old account or cleaning its registry entry.

Email data may require a separate import. Some applications may need reconfiguration or reinstallation, and Microsoft Store apps may require a new sign-in. Deleting the old ProfileList entry before this migration can make recovery harder.

Verify the result and recover from a mistake

  • The Delete button is unavailable: confirm that you are using another administrator account and that the target user is signed out. A service or scheduled task can also keep a profile loaded.
  • A .bak entry returns: stop deleting keys by suffix. Compare every ProfileImagePath, check the profile folder and hive, and run the cleanup script in report mode.
  • Windows signs in with a TEMP profile: save any files created during that session, sign out, and investigate the original profile’s mapping and hive. Do not treat the temporary folder as the user’s permanent data.
  • The folder remains after registry cleanup: this is expected when only the registry mapping was removed. Preserve or remove the folder separately after confirming that no data is needed.
  • The change caused a sign-in problem: from an administrator account, open regedit.exe, choose File → Import, select the saved .reg backup, restart, and test again.

The practical rule is simple: use the User Profiles dialog for a normal removal, use ProfileList inspection and scripts for confirmed orphan cleanup, and create a new profile when corruption is the underlying problem. Registry deletion should be the last, evidence-based step—not the first response to a failed sign-in.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

PowerShellProfileListRegistry Editorsystem administrationUser ProfilesWindows 10Windows 11

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.