Add log messages
This commit is contained in:
parent
1aabdc228e
commit
bf59f2e3a3
1 changed files with 4 additions and 0 deletions
|
@ -35,7 +35,11 @@ function New-PersonalUser([Context] $context)
|
|||
|
||||
Write-Host "Registering setup script for all new users";
|
||||
$context.RegisterNewUserReboot();
|
||||
|
||||
Write-Information "Enabling UAC for the next login (Microsoft Account login won't work otherwise, lol)";
|
||||
Enable-UACNextLogin;
|
||||
|
||||
Write-Information "Disabling Auto login";
|
||||
$context.RemoveAutologin();
|
||||
Restart-Computer;
|
||||
exit;
|
||||
|
|
Loading…
Reference in a new issue