Fix deletion of unnecessary tasks
This commit is contained in:
parent
57f4ffd0e4
commit
0317031d9a
1 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,8 @@ function Set-UACState([bool] $value) {
|
|||
function Enable-UACNextLogin([Context] $context) {
|
||||
Set-UACState $true;
|
||||
$tempTask = "PortValhalla Temp";
|
||||
$autoLoginName = "PortValhalla AutoLogin Setup";
|
||||
$uacDisablerName = "PortValhalla UAC Disabler";
|
||||
$autoLoginTrigger = Get-Random -Maximum 65535;
|
||||
$uacDisablerTrigger = Get-Random -Maximum 65535;
|
||||
|
||||
|
@ -92,7 +94,7 @@ function Enable-UACNextLogin([Context] $context) {
|
|||
$optionCollection = [System.Tuple[int, string, string[]][]]@(
|
||||
[System.Tuple]::Create(
|
||||
$autoLoginTrigger,
|
||||
"PortValhalla AutoLogin Setup",
|
||||
$autoLoginName,
|
||||
@(
|
||||
". '$PSScriptRoot/../Scripts/Context.ps1';",
|
||||
"`$context = [Context]::new();",
|
||||
|
|
Loading…
Reference in a new issue