Fix typos

This commit is contained in:
Manuel Thalmann 2024-03-23 00:29:34 +01:00
parent b1d9915786
commit d66254ec89

View file

@ -83,27 +83,29 @@ function Enable-UACNextLogin([Context] $context) {
[System.Tuple]::Create( [System.Tuple]::Create(
$autoLoginTrigger, $autoLoginTrigger,
$autoLoginName, $autoLoginName,
"{", @(
" Invoke-Command { $((Get-AutoLoginScript)) } -ArgumentList @(", "{",
" $autoLoginTrigger,", " Invoke-Command { $((Get-AutoLoginScript)) } -ArgumentList @(",
" '$contextScript',", " $autoLoginTrigger,",
" '$preparedUsernameProperty',", " '$contextScript',",
" '$preparedPasswordProperty'", " '$preparedUsernameProperty',",
" )", " '$preparedPasswordProperty'",
"}"), " )",
"}")),
[System.Tuple]::Create( [System.Tuple]::Create(
$uacDisablerTrigger, $uacDisablerTrigger,
$uacDisablerName, $uacDisablerName,
"{", @(
" Invoke-Command { $((Get-UACDisablerScript)) } -ArgumentList @(", "{",
" $uacDisablerTrigger,", " Invoke-Command { $((Get-UACDisablerScript)) } -ArgumentList @(",
" '$contextScript',", " $uacDisablerTrigger,",
" '$autoLoginName',", " '$contextScript',",
" '$uacDisablerName',", " '$autoLoginName',",
" '$autoLoginTriggerProperty',", " '$uacDisablerName',",
" '$uacDisablerTriggerProperty'", " '$autoLoginTriggerProperty',",
" )", " '$uacDisablerTriggerProperty'",
"}")); " )",
"}")));
foreach ($options in $optionCollection) { foreach ($options in $optionCollection) {
$action = New-ScheduledTaskAction -Execute "pwsh.exe" -Argument ( $action = New-ScheduledTaskAction -Execute "pwsh.exe" -Argument (