分享

通过powershell优化电脑速度和执行ps1脚本

 进分法 2023-05-03 发布于广东

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脚本

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多