您当前所在位置:首页安装教程装机教程批处理检测win7系统激活状态新方法

批处理检测win7系统激活状态新方法

更新:2024-01-13 12:00:37编辑:tooool归类:装机教程人气:56

      相关推荐

        永久激活的

  

  检查win7系统激活状态方法一:命令检查win7激活状态

  1、在“运行”里输入 slmgr.vbs -dli 并回车;

 

 
查看激活
 

  2、在“运行”里输入 slmgr.vbs -xpr 并回车;

 

输入 slmgr.vbs -xpr 并回车
win7永久激活查看

  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批处理,查看激活状态,如下图所示;

检测win7激活状态批处理.jpg



我告诉你msdn版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

检测win7系统激活状态批处理Alienware笔记本
微星b450主板装win7系统及bios设置教程(完美支持win7) R5 3500X和3600性能差距有多大?锐龙R5 3500X对比R5 3600性能评测