for %a in (4,5,6) do (
if exist "%ProgramFiles%\Microsoft Office\Office1%a\ospp.vbs" (cd /d "%ProgramFiles%\Microsoft Office\Office1%a")
if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%a\ospp.vbs" (cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%a"))
cscript ospp.vbs /remhst
cscript ospp.vbs /ckms-domain
cscript ospp.vbs /unpkey:8MBCX
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXXX-XXXXX-XXXXX
cscript ospp.vbs /dinstid> IID.txt
start IID.txt
cd C:\windows\system32