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