Exit script after running OneShot task

This commit is contained in:
Manuel Thalmann 2024-08-27 03:45:44 +02:00
parent 7952bcf207
commit 5ea09f9477

View file

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