• 新建一个文件 host.bat,将以下内容添加到新建的文件中
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
@echo off
@echo 117.28.245.88 logincdn.msauth.net>>C:\WINDOWS\system32\drivers\etc\hosts
@echo 117.28.245.88 login.live.com>>C:\WINDOWS\system32\drivers\etc\hosts
@echo 117.28.245.88 account.live.com>>C:\WINDOWS\system32\drivers\etc\hosts
@echo 117.28.245.88 acctcdn.msauth.net>>C:\WINDOWS\system32\drivers\etc\hosts
@ipconfig /flushdns
@echo on
@pause
  • 运行host.bat