Register setup script as admin
This commit is contained in:
parent
6b35ce6f39
commit
8e7aeb9161
1 changed files with 1 additions and 1 deletions
|
@ -203,6 +203,7 @@ $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;
|
||||||
|
@ -568,7 +569,6 @@ $null = New-Module {
|
||||||
New-ValhallaUser $name;
|
New-ValhallaUser $name;
|
||||||
|
|
||||||
if ($msAccount) {
|
if ($msAccount) {
|
||||||
Register-Setup -DefaultUser;
|
|
||||||
logoff;
|
logoff;
|
||||||
} else {
|
} else {
|
||||||
Restart-Intermediate;
|
Restart-Intermediate;
|
||||||
|
|
Loading…
Reference in a new issue