Tuesday, December 13, 2011

Writing Registry Key Default Values

 

PowerTip of the Day, from PowerShell.com:

 

If you need to set the default value for a Registry Key, you can  use either of these approaches:

Set-ItemProperty -Path HKCU:\Software\Somekey -Name ‘(Default)’ -Value MyValue

Or, you can just do this:

Set-Item -Path HKCU:\Software\Somekey -Value MyValue

 

thanks

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.