Monday, January 19, 2009

add new registry key

to add a new entry named 'PowerShellPath' to the CurrentVersion key, and return information about the new entry

PS> New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion -Name PowerShellPath -PropertyType String -Value $PSHome

PowerShellPath
--------------
C:\LINDOWS\system32\WindowsPowerShell\v1.0\

No comments:

Post a Comment