TechKnow

Author Topic: [BAT] Office 2010 (Office 14) activation status check  (Read 2941 times)

0 Members and 1 Guest are viewing this topic.

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
[BAT] Office 2010 (Office 14) activation status check
« on: March 29, 2012, 12:09:53 PM »
Just a simple/easy way to check the activation status of Office.

Code: [Select]
echo off
cls
echo.
echo Office 2010 (Office 14) activation status check
echo.
if exist "%ProgramW6432%\Microsoft Office\Office14\ospp.vbs" cd "%ProgramW6432%\Microsoft Office\Office14"
if exist "%programfiles(x86)%\Microsoft Office\Office14\ospp.vbs" cd "%programfiles(x86)%\Microsoft Office\Office14"
if exist "%programfiles%\Microsoft Office\Office14\ospp.vbs" cd "%programfiles%\Microsoft Office\Office14"
cscript ospp.vbs /dstatus >Office14Key.txt
REM cscript ospp.vbs /dstatusall
FINDSTR /C:"---LICENSED---" Office14Key.txt
if %errorlevel%==0 color 0a
if %errorlevel%==1 color 0c
echo.
pause