Creating Registry DWORD entry with PowerShell

22. April 2015

ps

PowerShell Version: >2
Modules: none

 

New-ItemProperty "hklm:\SOFTWARE\Microsoft\..." -Name "testkey" -Value 1 -PropertyType "DWord"

 -Name is the RegKey Name

-Value is the Value in hexadecimal

-PropertyType defines that we want a DWORD

#PowerShell
1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *


*