tzutil /s "China Standard Time" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 1 /f net stop wuauserv sc delete wuauserv net stop WpnService sc delete WpnService
Set-ExecutionPolicy RemoteSigned
powershell.exe -ExecutionPolicy RemoteSigned -file "C:\Users\Administrator\Desktop\1.ps1"
1、将时间优化为北京时间 2、关闭Windows更新 3、停止一项服务,服务名为wuauserv 4、删除一项服务 5、停止一项服务,服务名为WpnService 6、删除一项服务 7、运行执行powershell脚本 8、在不允许的大环境下临时执行ps1脚本
|