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) {
|
function Enable-UACNextLogin([Context] $context) {
|
||||||
Set-UACState $true;
|
Set-UACState $true;
|
||||||
$tempTask = "PortValhalla Temp";
|
$tempTask = "PortValhalla Temp";
|
||||||
|
$autoLoginName = "PortValhalla AutoLogin Setup";
|
||||||
|
$uacDisablerName = "PortValhalla UAC Disabler";
|
||||||
$autoLoginTrigger = Get-Random -Maximum 65535;
|
$autoLoginTrigger = Get-Random -Maximum 65535;
|
||||||
$uacDisablerTrigger = Get-Random -Maximum 65535;
|
$uacDisablerTrigger = Get-Random -Maximum 65535;
|
||||||
|
|
||||||
|
@ -92,7 +94,7 @@ function Enable-UACNextLogin([Context] $context) {
|
||||||
$optionCollection = [System.Tuple[int, string, string[]][]]@(
|
$optionCollection = [System.Tuple[int, string, string[]][]]@(
|
||||||
[System.Tuple]::Create(
|
[System.Tuple]::Create(
|
||||||
$autoLoginTrigger,
|
$autoLoginTrigger,
|
||||||
"PortValhalla AutoLogin Setup",
|
$autoLoginName,
|
||||||
@(
|
@(
|
||||||
". '$PSScriptRoot/../Scripts/Context.ps1';",
|
". '$PSScriptRoot/../Scripts/Context.ps1';",
|
||||||
"`$context = [Context]::new();",
|
"`$context = [Context]::new();",
|
||||||
|
|
Loading…
Reference in a new issue