Re-enable RunOnce
creation for new users
This commit is contained in:
parent
858679a36a
commit
0137fd56f3
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ 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") && Disable-LocalUser $context.AdminName;
|
||||
|
||||
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 $context;
|
||||
|
||||
|
|
Loading…
Reference in a new issue