Reboot after creating a new user

This commit is contained in:
Manuel Thalmann 2023-06-23 14:04:39 +02:00
parent 5bc48ca478
commit fd3df6110e

View file

@ -30,5 +30,6 @@ function New-PersonalUser([Context] $context)
Rename-LocalUser $user $context.UserName;
Add-LocalGroupMember -Group "Administrators" -Member $user && Set-LocalUser $context.AdminName -Password (ConvertTo-SecureString -AsPlainText "Admin");
$context.Reboot();
}
}