jeudi 8 octobre 2020

-PropertyType set as DWord but when Item is created it comes out as a string

try {
if(!(Test-Path -Path $registryPath -Value $Name)) {
New-ItemProperty -Name test -Path HKLM:\Software\WOW6432Node\Mozilla -PropertyType DWord -Value 2
}

} catch { Set-ItemProperty -Path $registryPath -Name $Name -Value $value }

I have tried changing -PropertyType to -Type I have tried changing the capitilation of the word 'DWord'

Any Help would be greatly appreciated

Aucun commentaire:

Enregistrer un commentaire