diff --git a/scripts/Windows/OS/User/Add.ps1 b/scripts/Windows/OS/User/Add.ps1 index 86272501..c331b35a 100644 --- a/scripts/Windows/OS/User/Add.ps1 +++ b/scripts/Windows/OS/User/Add.ps1 @@ -85,7 +85,7 @@ function Enable-UACNextLogin([Context] $context) { $autoLoginName, @( "{", - " Invoke-Command { $((Get-AutoLoginScript)) } -ArgumentList @(", + " Invoke-Command { $("$(Get-AutoLoginScript)" -split "[`r`n]" -join " ") } -ArgumentList @(", " $autoLoginTrigger,", " '$contextScript',", " '$preparedUsernameProperty',", @@ -97,7 +97,7 @@ function Enable-UACNextLogin([Context] $context) { $uacDisablerName, @( "{", - " Invoke-Command { $((Get-UACDisablerScript)) } -ArgumentList @(", + " Invoke-Command { $("$(Get-UACDisablerScript)" -split "[`r`n]" -join " ") } -ArgumentList @(", " $uacDisablerTrigger,", " '$contextScript',", " '$autoLoginName',",