Reboot after creating a new user
This commit is contained in:
parent
5bc48ca478
commit
fd3df6110e
1 changed files with 1 additions and 0 deletions
|
@ -30,5 +30,6 @@ function New-PersonalUser([Context] $context)
|
||||||
|
|
||||||
Rename-LocalUser $user $context.UserName;
|
Rename-LocalUser $user $context.UserName;
|
||||||
Add-LocalGroupMember -Group "Administrators" -Member $user && Set-LocalUser $context.AdminName -Password (ConvertTo-SecureString -AsPlainText "Admin");
|
Add-LocalGroupMember -Group "Administrators" -Member $user && Set-LocalUser $context.AdminName -Password (ConvertTo-SecureString -AsPlainText "Admin");
|
||||||
|
$context.Reboot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue