@clazic/urban 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/install/daemon.js +1 -1
package/package.json
CHANGED
package/src/install/daemon.js
CHANGED
|
@@ -105,7 +105,7 @@ $urbanHome = '${psQ(urbanHome)}'
|
|
|
105
105
|
$argument = '-NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File "' + $scriptPath + '"'
|
|
106
106
|
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument $argument -WorkingDirectory $urbanHome
|
|
107
107
|
$trigger = New-ScheduledTaskTrigger -AtLogOn -User $env:USERNAME
|
|
108
|
-
$principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType
|
|
108
|
+
$principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive -RunLevel Limited
|
|
109
109
|
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit ([TimeSpan]::Zero) -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable -MultipleInstances IgnoreNew -RestartCount 5 -RestartInterval (New-TimeSpan -Minutes 1) -Hidden
|
|
110
110
|
Unregister-ScheduledTask -TaskName 'Urban' -Confirm:$false -ErrorAction SilentlyContinue | Out-Null
|
|
111
111
|
Register-ScheduledTask -TaskName 'Urban' -Action $action -Trigger $trigger -Principal $principal -Settings $settings | Out-Null
|