pull/219/head
KnifMelti 2022-10-26 23:18:42 +02:00
parent cc7e989e5c
commit 43de90c7cd
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,7 @@ if (Test-Network) {
if ($IsSystem -and $UserScheduledTask) { if ($IsSystem -and $UserScheduledTask) {
#Get Winget system apps to excape them befor running user context #Get Winget system apps to excape them befor running user context
Write-Log "Get list of installed Winget apps in System context..."
Get-WingetSystemApps Get-WingetSystemApps
#Run user context scheduled task #Run user context scheduled task
@ -176,6 +177,9 @@ if (Test-Network) {
Start-ScheduledTask $UserScheduledTask.TaskName -ErrorAction SilentlyContinue Start-ScheduledTask $UserScheduledTask.TaskName -ErrorAction SilentlyContinue
Exit 0 Exit 0
} }
elseif (!$UserScheduledTask){
Write-Log "User context execution not installed"
}
} }
} }