Skip to content

Aman Dhally's Blog

the life of an IT administrator..

  • Home
  • 100Days Of Self Improvement
  • PowerShell Blog
  • Poetry
  • About Me
  • General
PowerShell

Writing Registry Key Default Values

13 December, 20113 August, 2012 Aman Dhally

 

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

Powershell PowerShell.com Set-Item set-itemproperty

Post navigation

Previous Post Asking for Credentials
Next Post Change Service Start Mode the PowerShell Way

Disclaimer!

Please note all of these views and opinions are my own

Subscribe Podcast

Click Here to subscribe to the PodCast
Proudly powered by WordPress · Theme: Button by Automattic.