Register MSAcc logon script early

This commit is contained in:
Manuel Thalmann 2024-08-27 03:24:37 +02:00
parent d8e31c4361
commit 867553c479
2 changed files with 1 additions and 1 deletions

View file

@ -213,7 +213,6 @@ $null = New-Module {
switch (Get-OneShotTask) {
([OneShotTask]::InitializeMSAccount) {
Initialize-UserCreation;
Register-Setup -DefaultUser;
}
([OneShotTask]::DisableUAC) {
Disable-UAC;

View file

@ -88,6 +88,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;