From 096d690f57854e040ed1120095ce60345d8980c1 Mon Sep 17 00:00:00 2001 From: Git Sagar Date: Mon, 8 Jun 2026 14:19:47 +0530 Subject: [PATCH] remove slmgr key restore after MAS activation Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/images/windows/templates/generalize.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/images/windows/templates/generalize.nix b/lib/images/windows/templates/generalize.nix index 54740cf..8af01c0 100644 --- a/lib/images/windows/templates/generalize.nix +++ b/lib/images/windows/templates/generalize.nix @@ -83,10 +83,6 @@ in if exist C:\MAS_AIO.cmd ( echo. | call C:\MAS_AIO.cmd /HWID ) - :: MAS may switch edition to IoT Enterprise (which lacks RDP server). - :: Restore Enterprise LTSC key to keep full RDP functionality. - cscript //nologo C:\Windows\System32\slmgr.vbs /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D 2>nul - :: Activate Office using Ohook method (if Office is installed) if exist "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE" ( if exist C:\MAS_AIO.cmd (