Remove new line characters from scheduled tasks

This commit is contained in:
Manuel Thalmann 2024-03-23 00:57:44 +01:00
parent d66254ec89
commit 98acbc4817

View file

@ -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',",