Enable OneShot listener for MS accounts

This commit is contained in:
Manuel Thalmann 2024-08-10 15:18:10 +02:00
parent 9daaf4cee8
commit a43a4890f3

View file

@ -510,6 +510,7 @@ $null = New-Module {
if (Get-UserConfig -UserName "$user" -Name "microsoftAccount") { if (Get-UserConfig -UserName "$user" -Name "microsoftAccount") {
Enable-UAC; Enable-UAC;
Disable-Autologin; Disable-Autologin;
Enable-OneShotListener;
Set-BootMessage -Caption "Please Log In" -Message "Please log in using your new Microsoft Account ``$user``."; Set-BootMessage -Caption "Please Log In" -Message "Please log in using your new Microsoft Account ``$user``.";
} else { } else {
Set-AutologinUser "$user"; Set-AutologinUser "$user";