Archive for the ‘win7’ Category

查看Windows详细版本号

November 20, 2014
  • Winver: 简略版

 

  • slmgr.vbs: 详细信息

    • slmgr.vbs -dli: 显示:操作系统版本、部分产品密钥、许可证状态
    • slmgr.vbs -dlv: 显示:最为详尽的激活信息,包括:激活ID、安装ID、激活截止日期
    • slmgr.vbs -xpr: 显示:是否彻底激活
    • slmgr.vbs -ipk: 更换Windows序列号  
    • slmgr.vbs -ato:  激活Windows
Advertisements

BIOS version command

August 9, 2014
wmic bios get smbiosbiosversion

win7 命令行添加防火墙规则 端口

July 25, 2010

netsh advfirewall firewall add rule name=”allow80″ dir=in protocol=tcp localport=80 action=allow

notepad2 win7

March 1, 2010

rem START BATCH COMMANDS
rem PLEASE MAKE SURE THAT USER ACCOUNT CONTROL (UAC) IS TURNED OFF AND PC HAS BEEN REBOOTED FIRST!
rem If you are using VISTA x32 version, then edit this file first by adding “rem ” in front of every line that contains the phrase “syswow64?. Then run the script again.
@echo off
PAUSE

takeown /f c:\windows\syswow64\notepad.exe
cacls c:\windows\syswow64\notepad.exe /G Administrators:F

takeown /f c:\windows\system32\notepad.exe
cacls c:\windows\system32\notepad.exe /G Administrators:F

takeown /f c:\windows\notepad.exe
cacls c:\windows\notepad.exe /G Administrators:F

copy c:\windows\syswow64\notepad.exe c:\windows\syswow64\notepad.exe.backup
copy c:\windows\system32\notepad.exe c:\windows\system32\notepad.exe.backup
copy c:\windows\notepad.exe c:\windows\notepad.exe.backup

copy notepad2.exe c:\windows\syswow64\notepad.exe
copy notepad2.exe c:\windows\system32\notepad.exe
copy notepad2.exe c:\windows\notepad.exe
@echo on
rem END BATCH COMMANDS

存成’replace.bat’,和notepad2的四个文件放在一起,管理员运行。