Improve log messages of OneShot tasks

This commit is contained in:
Manuel Thalmann 2024-08-21 02:02:30 +02:00
parent 8c12cc6b84
commit c2d494f151

View file

@ -169,10 +169,9 @@ $null = New-Module {
break;
}
([SetupStage]::OneShot) {
Write-Host "Running a OneShot task";
Write-Host "Running OneShot task ``$(Get-OneShotTask)``";
Start-OneShot {
Write-Host "task is-a running!";
switch (Get-OneShotTask) {
([OneShotTask]::DisableUAC) {
Disable-UAC;