相关推荐:
永久激活的
检查win7系统激活状态方法一:命令检查win7激活状态
1、在“运行”里输入 slmgr.vbs -dli 并回车;
2、在“运行”里输入 slmgr.vbs -xpr 并回车;
3、右键计算机属性,查看是否激活。
检查win7系统激活状态方法二:批处理检测win7系统激活状态
1、在在桌面新建一个文本文档,把以下内容复制进去,重命合文本文档.txt为检测win7激活状态.bat,如下图所示;
检测win7激活状态.bat内容如下;
@echo off
cd /d "%~dp0"
Mode con cols=65 lines=55
color 1F
cls
SetLocal EnableDelayedExpansion
if not exist "%Public%" title 检测 Office2010/2013/2016 激活状态
if not exist "%Public%" goto:Check_Office
cls
title 检测激活状态
if exist "%Windir%\Sysnative\sppsvc.exe" set SysPath=%Windir%\Sysnative
if exist "%Windir%\System32\sppsvc.exe" set SysPath=%Windir%\System32
echo.
echo Windows 激活状态:
ver
cscript //nologo %SysPath%\slmgr.vbs /dli
cscript //nologo %SysPath%\slmgr.vbs /xpr
echo.
:Check_Office
echo Office 2010 激活状态:
set office=
set installed=0
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)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d "%~dp0"
)
set office=
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)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d "%~dp0"
)
if %installed%==0 echo 本机未安装 Office 2010
echo.
echo Office 2013 激活状态:
set office=
set installed=0
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)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d "%~dp0"
)
set office=
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)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d "%~dp0"
)
if %installed%==0 echo 本机未安装 Office 2013
echo.
echo Office 2016 激活状态:
set office=
set installed=0
FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d "%~dp0"
)
set office=
FOR /F "tokens=2*" %%a IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Common\InstallRoot" /v "Path" 2^>nul') do (SET office=%%b)
if exist "%office%\OSPP.VBS" (
set installed=1
cd /d "%office%"
cscript //nologo ospp.vbs /dstatus
cd /d "%~dp0"
)
if %installed%==0 echo 本机未安装 Office 2016
pause >nul
2、运行检测win7激活状态.bat批处理,查看激活状态,如下图所示;