Creating Registry DWORD entry with PowerShell

22. April 2015


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

1 Comment
Andreas Leo
30. July 2020 @ 16:01


i think value is in decimal, until u add a “0x” as prefix


Leave a Reply

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