echo off
net stop osppsvc
takeown /f "PROGRAMFILES\Common Files\Microsoft Shared\OFFICE14\Office Setup Con
troller\pkeyconfig-office.xrm-ms"
icacls "PROGRAMFILES\Common Files\Microsoft Shared\OFFICE14\Office Setup Control
ler\pkeyconfig-office.xrm-ms" /grant administrators:F /t
del /F /Q "PROGRAMFILES\Common Files\Microsoft Shared\OFFICE14\Office Setup Cont
roller\pkeyconfig-office.xrm-ms"
copy "dp0pkeyconfig-office.xrm-ms" "PROGRAMFILES\Common Files\Microsoft Shared\O
FFICE14\Office Setup Controller\pkeyconfig-office.xrm-ms"
takeown /f "PROGRAMDATA\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"
icacls "PROGRAMDATA\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat" /gran
t administrators:F /t
del /F /Q "%PROGRAMDATA%\Microsoft\OfficeSoftwareProtectionPlatform\tokens.dat"
copy "dp0tokens.dat" "PROGRAMDATA\Microsoft\OfficeSoftwareProtectionPlatform\tok
ens.dat"
takeown /f "PROGRAMDATA\Microsoft\OfficeSoftwareProtectionPlatform\Cache" /r
icacls "PROGRAMDATA\Microsoft\OfficeSoftwareProtectionPlatform\Cache" /grant adm
inistrators:F /t
rd /s /Q "PROGRAMDATA\Microsoft\OfficeSoftwareProtectionPlatform\Cache"
cscript "PROGRAMFILES\Microsoft Office\Office14\ospp.vbs" /inpkey:6QFDX-PYH2G-PP
YFD-C7RJM-BBKQ8
cscript "PROGRAMFILES\Microsoft Office\Office14\ospp.vbs" /act
cscript PROGRAMFILES\Microsoft Office\Office14\ospp.vbs / dstatus