Register setup script as admin

This commit is contained in:
Manuel Thalmann 2024-08-22 11:10:39 +02:00
parent 6b35ce6f39
commit 8e7aeb9161

View file

@ -203,6 +203,7 @@ $null = New-Module {
switch (Get-OneShotTask) {
([OneShotTask]::InitializeMSAccount) {
Initialize-UserCreation;
Register-Setup -DefaultUser;
}
([OneShotTask]::DisableUAC) {
Disable-UAC;
@ -568,7 +569,6 @@ $null = New-Module {
New-ValhallaUser $name;
if ($msAccount) {
Register-Setup -DefaultUser;
logoff;
} else {
Restart-Intermediate;