Exit script after running OneShot task
This commit is contained in:
parent
4f8df6b406
commit
b2fc26185d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
<#
|
||||||
|
|
Loading…
Reference in a new issue