skip MAS activation when enableRDP is set
MAS HWID switches Enterprise LTSC to IoT Enterprise S which lacks the RDP server listener. Skip activation to preserve the edition. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
096d690f57
commit
84bcc9b66c
1 changed files with 4 additions and 0 deletions
|
|
@ -79,6 +79,9 @@ in
|
|||
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
|
||||
if exist C:\MAS_AIO.cmd (
|
||||
echo. | call C:\MAS_AIO.cmd /HWID
|
||||
|
|
@ -89,6 +92,7 @@ in
|
|||
echo. | call C:\MAS_AIO.cmd /Ohook
|
||||
)
|
||||
)
|
||||
''}
|
||||
del /q C:\MAS_AIO.cmd 2>nul
|
||||
|
||||
${lib.optionalString enableRDP ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue