From a6a2b6331ee24c9a8955a304045269e7dbb00c17 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 27 Aug 2024 03:25:19 +0200 Subject: [PATCH] Rearm Windows Activation before creating MSAcc --- scripts/Windows/Scripts/Users.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/Windows/Scripts/Users.ps1 b/scripts/Windows/Scripts/Users.ps1 index 37d896aa..108284af 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -91,6 +91,12 @@ $null = New-Module { Register-Setup -DefaultUser; Enable-OneShotListener; 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; exit; }