Skip to content

Instantly share code, notes, and snippets.

@JohnLBevan
Created March 5, 2020 09:33
Show Gist options
  • Select an option

  • Save JohnLBevan/f1f84b1747e7ea856bc4f900c0ad3b13 to your computer and use it in GitHub Desktop.

Select an option

Save JohnLBevan/f1f84b1747e7ea856bc4f900c0ad3b13 to your computer and use it in GitHub Desktop.
Useful Windows Registry Keys
#
# 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