fix TSforge activation: re-install key and restart SPP before TSforge
Sysprep clears licensing state. Re-install product key via slmgr /ipk, re-install license files via /rilc, and restart the SPP service before running TSforge to ensure activation IDs are available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
48123ed9ab
commit
703d80f479
2 changed files with 12 additions and 2 deletions
|
|
@ -81,14 +81,21 @@ in
|
|||
powershell -Command "Get-AppxPackage *MicrosoftEdgeDevToolsClient* | Remove-AppxPackage -ErrorAction SilentlyContinue"
|
||||
|
||||
|
||||
:: Activate Windows using TSforge (hardware-independent, survives VM migration)
|
||||
:: Re-install product key to restore licensing after sysprep
|
||||
cscript //nologo C:\Windows\System32\slmgr.vbs /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D
|
||||
cscript //nologo C:\Windows\System32\slmgr.vbs /rilc
|
||||
:: Restart SPP service and wait for it to settle
|
||||
net stop sppsvc /y 2>nul
|
||||
net start sppsvc
|
||||
ping -n 10 127.0.0.1 >nul
|
||||
:: Activate Windows using TSforge
|
||||
if exist C:\MAS_AIO.cmd (
|
||||
echo. | call C:\MAS_AIO.cmd /Z-Windows
|
||||
)
|
||||
:: 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 (
|
||||
echo. | call C:\MAS_AIO.cmd /Ohook
|
||||
echo. | call C:\MAS_AIO.cmd /Ohook >> C:\vmix-activation.log 2>&1
|
||||
)
|
||||
)
|
||||
del /q C:\MAS_AIO.cmd 2>nul
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue