Exit script after rebooting

This commit is contained in:
Manuel Thalmann 2023-06-25 18:11:56 +02:00
parent 6481c9898b
commit 6700e4f318
2 changed files with 2 additions and 0 deletions

View file

@ -35,5 +35,6 @@ function New-PersonalUser([Context] $context)
Write-Host "Registering setup script for all new users";
$context.RegisterNewUserReboot();
Restart-Computer;
exit;
}
}

View file

@ -114,5 +114,6 @@ class Context {
Write-Host "Restarting Computer...";
$this.RegisterReboot();
Restart-Computer;
exit;
}
}