Replace C# invocations with Invoke-Command
This commit is contained in:
parent
5e6eebf8ad
commit
5290d3283a
1 changed files with 2 additions and 2 deletions
|
@ -83,11 +83,11 @@ function Enable-UACNextLogin([Context] $context) {
|
|||
[System.Tuple]::Create(
|
||||
$autoLoginTrigger,
|
||||
$autoLoginName,
|
||||
"{ $((Get-AutoLoginScript)) }.Invoke($autoLoginTrigger, '$contextScript', '$preparedUsernameProperty', '$preparedPasswordProperty')")
|
||||
"Invoke-Command { $((Get-AutoLoginScript)) } -ArgumentList @($autoLoginTrigger, '$contextScript', '$preparedUsernameProperty', '$preparedPasswordProperty')")
|
||||
[System.Tuple]::Create(
|
||||
$uacDisablerTrigger,
|
||||
$uacDisablerName,
|
||||
"{ $((Get-UACDisablerScript)) }.Invoke($uacDisablerTrigger, '$contextScript', '$autoLoginName', '$uacDisablerName', '$autoLoginTriggerProperty', '$uacDisablerTriggerProperty')"));
|
||||
"Invoke-Command { $((Get-UACDisablerScript)) } -ArgumentList @($uacDisablerTrigger, '$contextScript', '$autoLoginName', '$uacDisablerName', '$autoLoginTriggerProperty', '$uacDisablerTriggerProperty')"));
|
||||
|
||||
foreach ($options in $optionCollection) {
|
||||
$action = New-ScheduledTaskAction -Execute "pwsh.exe" -Argument (
|
||||
|
|
Loading…
Reference in a new issue