diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 50392999..337c65b7 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -5,6 +5,7 @@ using namespace System.Security.Principal; . "$PSScriptRoot/Manage.ps1"; . "$PSScriptRoot/User/Install.ps1"; +. "$PSScriptRoot/../Scripts/Security.ps1"; . "$PSScriptRoot/../Software/Firefox/Install.ps1"; . "$PSScriptRoot/../../Common/Scripts/Context.ps1"; @@ -465,13 +466,14 @@ $null = New-Module { Enable-LocalUser $user; if (Get-UserConfig -UserName "$user" -Name "microsoftAccount") { + Enable-UAC; Disable-Autologin; Set-BootMessage -Caption "Login" -Message "Please login using your account."; } else { Set-AutologinUser "$user"; } - Restart-Intermediate + Restart-Intermediate -DefaultUser; return; }