Exit script after rebooting
This commit is contained in:
parent
6481c9898b
commit
6700e4f318
|
@ -35,5 +35,6 @@ function New-PersonalUser([Context] $context)
|
||||||
Write-Host "Registering setup script for all new users";
|
Write-Host "Registering setup script for all new users";
|
||||||
$context.RegisterNewUserReboot();
|
$context.RegisterNewUserReboot();
|
||||||
Restart-Computer;
|
Restart-Computer;
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,5 +114,6 @@ class Context {
|
||||||
Write-Host "Restarting Computer...";
|
Write-Host "Restarting Computer...";
|
||||||
$this.RegisterReboot();
|
$this.RegisterReboot();
|
||||||
Restart-Computer;
|
Restart-Computer;
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue