Fix quotation
This commit is contained in:
parent
ecf6b0c573
commit
2f6ee57525
1 changed files with 5 additions and 5 deletions
|
@ -90,12 +90,12 @@ function Enable-UACNextLogin([Context] $context) {
|
|||
" ",
|
||||
@(
|
||||
"-c",
|
||||
"Set-ItemProperty `"$keyPath`" -Name `"$propertyName`" -Value 0;",
|
||||
"Unregister-ScheduledTask -Force $uacDisablerName;",
|
||||
". `"$PSScriptRoot/../Scripts/Context.ps1`";",
|
||||
"Set-ItemProperty '$keyPath' -Name '$propertyName' -Value 0;",
|
||||
"Unregister-ScheduledTask -Force '$uacDisablerName';",
|
||||
". '$PSScriptRoot/../Scripts/Context.ps1';",
|
||||
"`$context = [Context]::new();",
|
||||
"`$context.EntryPoint = `"$($context.EntryPoint)`";",
|
||||
"`$context.RegisterReboot((Get-Item `"Registry::HKEY_USERS\$((Get-LocalUser $context.UserName).SID)));",
|
||||
"`$context.EntryPoint = '$($context.EntryPoint)';",
|
||||
"`$context.RegisterReboot((Get-Item 'Registry::HKEY_USERS\$((Get-LocalUser $context.UserName).SID)'));",
|
||||
"Restart-Computer;")));
|
||||
|
||||
$trigger = New-ScheduledTaskTrigger -AtLogOn;
|
||||
|
|
Loading…
Reference in a new issue