Exit script after running OneShot task

This commit is contained in:
Manuel Thalmann 2024-08-27 03:45:44 +02:00
parent 8ec7f512a0
commit 0d695bda04

View file

@ -187,6 +187,8 @@ $null = New-Module {
Set-Stage ([SetupStage]::Idle); Set-Stage ([SetupStage]::Idle);
Write-EventLog -LogName $logName -Source $logName -EventId $oneShotTrigger -Message "The OneShot task ``$(Get-OneShotTask)`` finished."; Write-EventLog -LogName $logName -Source $logName -EventId $oneShotTrigger -Message "The OneShot task ``$(Get-OneShotTask)`` finished.";
} }
exit;
} }
<# <#