Represent numbers as hex if applicable

This commit is contained in:
Manuel Thalmann 2024-03-23 15:27:40 +01:00
parent 9bfb2f200a
commit 6fcb7fb4a8

View file

@ -11,7 +11,6 @@ function New-PersonalUser([Context] $context)
$userStageProperty = "UserStage";
$null = New-Module {
Get-UserStage {
return $context.Get($userStageProperty);
}
@ -86,8 +85,8 @@ function Enable-UACNextLogin([Context] $context) {
$tempTask = "PortValhalla Temp";
$autoLoginName = "PortValhalla AutoLogin Setup";
$uacDisablerName = "PortValhalla UAC Disabler";
$autoLoginTrigger = Get-Random -Maximum 65535;
$uacDisablerTrigger = Get-Random -Maximum 65535;
$autoLoginTrigger = Get-Random -Maximum 0xFFFF;
$uacDisablerTrigger = Get-Random -Maximum 0xFFFF;
$context.Set($autoLoginTriggerProperty, $autoLoginTrigger, "DWord");
$context.Set($uacDisablerTriggerProperty, $uacDisablerTrigger, "DWord");