Das Script sieht so aus:

$val2 = Get-ItemProperty -Path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings -Name "Enable" if($val2.Enable = 1)

{set-itemproperty -Path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings -Name "Enable" -value 0}

Als Fehler kommt: Get-ItemProperty : Es wurde kein Positionsparameter gefunden, der das Argument "Script" akzeptiert.

Jemand eine Idee? :/