From d66254ec893dbdee455b15dfc0e75e913189f8ef Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 23 Mar 2024 00:29:34 +0100 Subject: [PATCH] Fix typos --- scripts/Windows/OS/User/Add.ps1 | 38 +++++++++++++++++---------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/scripts/Windows/OS/User/Add.ps1 b/scripts/Windows/OS/User/Add.ps1 index 07ef95d1..86272501 100644 --- a/scripts/Windows/OS/User/Add.ps1 +++ b/scripts/Windows/OS/User/Add.ps1 @@ -83,27 +83,29 @@ function Enable-UACNextLogin([Context] $context) { [System.Tuple]::Create( $autoLoginTrigger, $autoLoginName, - "{", - " Invoke-Command { $((Get-AutoLoginScript)) } -ArgumentList @(", - " $autoLoginTrigger,", - " '$contextScript',", - " '$preparedUsernameProperty',", - " '$preparedPasswordProperty'", - " )", - "}"), + @( + "{", + " Invoke-Command { $((Get-AutoLoginScript)) } -ArgumentList @(", + " $autoLoginTrigger,", + " '$contextScript',", + " '$preparedUsernameProperty',", + " '$preparedPasswordProperty'", + " )", + "}")), [System.Tuple]::Create( $uacDisablerTrigger, $uacDisablerName, - "{", - " Invoke-Command { $((Get-UACDisablerScript)) } -ArgumentList @(", - " $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 (