Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-07-10 21:22:31 +02:00
parent 1de1d16205
commit 4387241907

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() {