Exit script after running OneShot task
This commit is contained in:
parent
9ec7145dcf
commit
bd764a1429
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
<#
|
||||
|
|
Loading…
Reference in a new issue