Created
March 5, 2020 09:33
-
-
Save JohnLBevan/f1f84b1747e7ea856bc4f900c0ad3b13 to your computer and use it in GitHub Desktop.
Useful Windows Registry Keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # A collection of registry keys wrapped in scripts to help use them and with comments on what they're for | |
| # | |
| <# | |
| SYMPTOM | |
| User gets a temporary profile every time they log on | |
| CAUSE | |
| .bak entry for the user in the profile list | |
| FIX | |
| Delete the key from the registry if happy that it's not useful (the below PS will detect it) | |
| #> | |
| Get-ChildItem -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' | ?{$_.Name -like '*.bak'} | Select-Object Name, @{N='ProfilePath'; E={$_ | Get-ItemProperty 'ProfileImagePath' | % 'ProfileImagePath' }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment