Exit script after rebooting
This commit is contained in:
parent
2320c9dbf4
commit
9cd6834819
2 changed files with 2 additions and 0 deletions
|
@ -35,5 +35,6 @@ function New-PersonalUser([Context] $context)
|
|||
Write-Host "Registering setup script for all new users";
|
||||
$context.RegisterNewUserReboot();
|
||||
Restart-Computer;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,5 +114,6 @@ class Context {
|
|||
Write-Host "Restarting Computer...";
|
||||
$this.RegisterReboot();
|
||||
Restart-Computer;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue