Modify or Remove a Registry Key Value
Problem
You want to modify or remove a property of a specific registry key.
Solution
To set the value of a registry key, use the SetItemProperty cmdlet:
PS >(GetItemProperty .).MyProgram c:\temp\MyProgram.exe PS >SetItemProperty . MyProgram d:\Lee\tools\MyProgram.exe PS >(GetItemProperty .).MyProgram d:\Lee\tools\MyProgram.exe
To remove the value of a registry key, use the RemoveItemProperty cmdlet:
PS >RemoveItemProperty . MyProgram PS >(GetItemProperty .).MyProgram
Discussion
- Read more about Modify or Remove a Registry Key Value
- Log in or register to post comments