Remove new line characters from scheduled tasks
This commit is contained in:
parent
d66254ec89
commit
98acbc4817
1 changed files with 2 additions and 2 deletions
|
@ -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',",
|
||||
|
|
Loading…
Reference in a new issue