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
Andreas Leo
30. July 2020 @ 16:01

hi,

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

Reply

Leave a Reply

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


*