windows 下 如何写程序判断windows 操作系统有没有激活。

解决方案 »

  1.   

    请问你是什么版本的操作系统,如果想查看win8/8.1版本激活等详细信息命令Win+R===>
    输入: slmgr.vbs -dlv 显示:最为详尽的激活信息,包括:激活ID、安装ID、激活截止日期等
      

  2.   

    参考 slmgr.vbs ?
      

  3.   


    windows批处理实现,另存为CheckWindowsAuthStatus.bat[code]
    @echo off
    rem only for simplified chinese
    cscript /nologo "%windir%\system32\slmgr.vbs" /dli|find "已授权"
    if errorlevel 1 exit /b 1
    [/code]返回代码1,表示“已授权以外的情况”。
    返回代码0,表示已授权。
      

  4.   

    a   get
      

  5.   

    Win+R调出“运行”窗品,输入: slmgr.vbs -dlv
      

  6.   


    windows批处理实现,另存为CheckWindowsAuthStatus.bat[code]
    @echo off
    rem only for simplified chinese
    cscript /nologo "%windir%\system32\slmgr.vbs" /dli|find "已授权"
    if errorlevel 1 exit /b 1
    [/code]返回代码1,表示“已授权以外的情况”。
    返回代码0,表示已授权。
      

  7.   

    Win+R===>
    输入: slmgr.vbs -dlv 显示:最为详尽的激活信息,包括:激活ID、安装ID、激活截止日期等