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