Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-07-10 21:22:31 +02:00
parent 120bf7eafa
commit 9f46580fa1

View file

@ -179,7 +179,7 @@ class Context {
}
[void] SetUACState([bool] $value) {
$null = Set-ItemProperty -Path ($this.GetSystemPolicyKey().PSPath) -Name "EnableLUA" -Value [int]$value;
$null = Set-ItemProperty -Path ($this.GetSystemPolicyKey().PSPath) -Name "EnableLUA" -Value ([int]$value);
}
[void] RegisterReboot() {