Represent numbers as hex if applicable
This commit is contained in:
parent
9bfb2f200a
commit
6fcb7fb4a8
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@ function New-PersonalUser([Context] $context)
|
||||||
$userStageProperty = "UserStage";
|
$userStageProperty = "UserStage";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
||||||
Get-UserStage {
|
Get-UserStage {
|
||||||
return $context.Get($userStageProperty);
|
return $context.Get($userStageProperty);
|
||||||
}
|
}
|
||||||
|
@ -86,8 +85,8 @@ function Enable-UACNextLogin([Context] $context) {
|
||||||
$tempTask = "PortValhalla Temp";
|
$tempTask = "PortValhalla Temp";
|
||||||
$autoLoginName = "PortValhalla AutoLogin Setup";
|
$autoLoginName = "PortValhalla AutoLogin Setup";
|
||||||
$uacDisablerName = "PortValhalla UAC Disabler";
|
$uacDisablerName = "PortValhalla UAC Disabler";
|
||||||
$autoLoginTrigger = Get-Random -Maximum 65535;
|
$autoLoginTrigger = Get-Random -Maximum 0xFFFF;
|
||||||
$uacDisablerTrigger = Get-Random -Maximum 65535;
|
$uacDisablerTrigger = Get-Random -Maximum 0xFFFF;
|
||||||
|
|
||||||
$context.Set($autoLoginTriggerProperty, $autoLoginTrigger, "DWord");
|
$context.Set($autoLoginTriggerProperty, $autoLoginTrigger, "DWord");
|
||||||
$context.Set($uacDisablerTriggerProperty, $uacDisablerTrigger, "DWord");
|
$context.Set($uacDisablerTriggerProperty, $uacDisablerTrigger, "DWord");
|
||||||
|
|
Loading…
Reference in a new issue