Monday, January 19, 2009

delete unwanted registry key

to delete both the 'PSHome' and 'PowerShellPath' registry entries

PS> Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion -Name PSHome

PS> Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion -Name PowerShellPath

No comments:

Post a Comment