Set proper boundaries for event numbers
This commit is contained in:
parent
3299ff78c0
commit
a122795f38
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ function Set-UACState([bool] $value) {
|
|||
function Enable-UACNextLogin([Context] $context) {
|
||||
Set-UACState $true;
|
||||
$tempTask = "PortValhalla Temp";
|
||||
$autoLoginTrigger = Get-Random;
|
||||
$uacDisablerTrigger = Get-Random;
|
||||
$autoLoginTrigger = Get-Random -Maximum 65535;
|
||||
$uacDisablerTrigger = Get-Random -Maximum 65535;
|
||||
|
||||
$key = Get-SystemPolicyKey;
|
||||
$context.Set($autoLoginTriggerProperty, $autoLoginTrigger, "DWord");
|
||||
|
|
Loading…
Reference in a new issue