Store task name in function
This commit is contained in:
parent
6f011a2600
commit
12c7e68086
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
||||
$uacDisablerName = "PortValhalla UAC Disabler";
|
||||
$taskTrigger = 1337;
|
||||
|
||||
function New-PersonalUser([Context] $context)
|
||||
|
@ -76,6 +75,7 @@ function Set-UACState([bool] $value) {
|
|||
function Enable-UACNextLogin([Context] $context) {
|
||||
Set-UACState $true;
|
||||
$tempTask = "PortValhalla Temp";
|
||||
$uacDisablerName = "PortValhalla UAC Disabler";
|
||||
$key = Get-SystemPolicyKey;
|
||||
|
||||
$action = New-ScheduledTaskAction -Execute "pwsh.exe" -Argument (
|
||||
|
|
Loading…
Reference in a new issue