re-enable MAS activation for all images

Win11 LTSC 2024 RDP works with MAS. The edition switch issue was
specific to Win10 LTSC 2021.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-08 17:01:10 +05:30
parent af764989c1
commit b9375c572f

View file

@ -79,9 +79,6 @@ in
powershell -Command "Get-AppxPackage *MicrosoftEdgeDevToolsClient* | Remove-AppxPackage -ErrorAction SilentlyContinue" powershell -Command "Get-AppxPackage *MicrosoftEdgeDevToolsClient* | Remove-AppxPackage -ErrorAction SilentlyContinue"
${if enableRDP then ''
:: Skip MAS activation when RDP is enabled (MAS switches edition to IoT which lacks RDP server)
'' else ''
:: Activate Windows using HWID method :: Activate Windows using HWID method
if exist C:\MAS_AIO.cmd ( if exist C:\MAS_AIO.cmd (
echo. | call C:\MAS_AIO.cmd /HWID echo. | call C:\MAS_AIO.cmd /HWID
@ -92,7 +89,6 @@ in
echo. | call C:\MAS_AIO.cmd /Ohook echo. | call C:\MAS_AIO.cmd /Ohook
) )
) )
''}
del /q C:\MAS_AIO.cmd 2>nul del /q C:\MAS_AIO.cmd 2>nul
${lib.optionalString enableRDP '' ${lib.optionalString enableRDP ''