Register MSAcc logon script early
This commit is contained in:
parent
d8e31c4361
commit
867553c479
|
@ -213,7 +213,6 @@ $null = New-Module {
|
||||||
switch (Get-OneShotTask) {
|
switch (Get-OneShotTask) {
|
||||||
([OneShotTask]::InitializeMSAccount) {
|
([OneShotTask]::InitializeMSAccount) {
|
||||||
Initialize-UserCreation;
|
Initialize-UserCreation;
|
||||||
Register-Setup -DefaultUser;
|
|
||||||
}
|
}
|
||||||
([OneShotTask]::DisableUAC) {
|
([OneShotTask]::DisableUAC) {
|
||||||
Disable-UAC;
|
Disable-UAC;
|
||||||
|
|
|
@ -88,6 +88,7 @@ $null = New-Module {
|
||||||
if ($msAccount) {
|
if ($msAccount) {
|
||||||
if (Test-Admin) {
|
if (Test-Admin) {
|
||||||
Write-Host "Preparing environment for creating MS Account";
|
Write-Host "Preparing environment for creating MS Account";
|
||||||
|
Register-Setup -DefaultUser;
|
||||||
Enable-OneShotListener;
|
Enable-OneShotListener;
|
||||||
Enable-UAC;
|
Enable-UAC;
|
||||||
Restart-Intermediate -CurrentUser;
|
Restart-Intermediate -CurrentUser;
|
||||||
|
|
Loading…
Reference in a new issue