Exit script after running OneShot task

This commit is contained in:
Manuel Thalmann 2024-08-27 03:45:44 +02:00
parent 9ec7145dcf
commit bd764a1429

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;
}
<#