Add log messages

This commit is contained in:
Manuel Thalmann 2023-06-28 22:10:23 +02:00
parent 1aabdc228e
commit bf59f2e3a3

View file

@ -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;