Rearm Windows Activation before creating MSAcc

This commit is contained in:
Manuel Thalmann 2024-08-27 03:25:19 +02:00
parent ba9cdf9a09
commit c5507ed4c4

View file

@ -91,6 +91,12 @@ $null = New-Module {
Register-Setup -DefaultUser; Register-Setup -DefaultUser;
Enable-OneShotListener; Enable-OneShotListener;
Enable-UAC; Enable-UAC;
# Reset Windows activation status
# Otherwise the login won't work - Windows is fricking frustrating.
slmgr /upk;
slmgr /cpky;
slmgr /rearm;
Restart-Intermediate -CurrentUser; Restart-Intermediate -CurrentUser;
exit; exit;
} }