Advertisement
Androxilogin

Check Windows Activation

Aug 26th, 2014
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. @echo off
  2. cd /d %~dp0
  3. color 1F
  4. setLocal EnableDelayedExpansion
  5. if exist "%Windir%\Sysnative\sppsvc.exe" set SysPath=%Windir%\Sysnative
  6. if exist "%Windir%\System32\sppsvc.exe" set SysPath=%Windir%\System32
  7.  
  8. echo Windows Status:
  9. ver
  10. cscript //nologo %SysPath%\slmgr.vbs /dli
  11. cscript //nologo %SysPath%\slmgr.vbs /xpr
  12.  
  13. echo.
  14. echo.
  15. echo Office 2013 Status:
  16. set office=
  17. set installed=0
  18. FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
  19. if exist "%office%\OSPP.VBS" (
  20. set installed=1
  21. cd /d "%office%"
  22. cscript //nologo ospp.vbs /dstatus
  23. cd /d %~dp0
  24. )
  25. set office=
  26. FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
  27. if exist "%office%\OSPP.VBS" (
  28. set installed=1
  29. cd /d "%office%"
  30. cscript //nologo ospp.vbs /dstatus
  31. cd /d %~dp0
  32. )
  33. if %installed%==0 echo Not installed
  34.  
  35. echo.
  36. echo.
  37. echo Office 2010 Status:
  38. set office=
  39. set installed=0
  40. FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
  41. if exist "%office%\OSPP.VBS" (
  42. set installed=1
  43. cd /d "%office%"
  44. cscript //nologo ospp.vbs /dstatus
  45. cd /d %~dp0
  46. )
  47. set office=
  48. FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
  49. if exist "%office%\OSPP.VBS" (
  50. set installed=1
  51. cd /d "%office%"
  52. cscript //nologo ospp.vbs /dstatus
  53. cd /d %~dp0
  54. )
  55. if %installed%==0 echo Not installed
  56.  
  57. echo.
  58. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement