From 4a2753e9286de4abf235f32caa1ea06a897ad556 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 12f886f6..a2b61d09 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -92,6 +92,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; }