powershell - 在 Windows 10 pro 上以编程方式通过组策略停止更新
问题描述
我想使用组策略禁用 Windows 自动更新。我尝试使用以下方法禁用wuauserv
运行自动更新的服务:
sc config wuauserv start= disable
sc config bits start= disable
sc config DcomLaunch start= disable
net stop wuauserv
net stop bits
net stop DcomLaunch
但这不是我所追求的。我想禁用本地组策略。
我发现的另一种方法是更改注册表值DWORD DisableRootAutoUpdate = 1
,但我可以设法使其工作。
解决方案
推荐阅读
- python - Pandas to_sql 对于宽表有错误:以“xxx”开头的标识符太长。最大长度为 128。 (103) (SQLExecDirectW)
- android - Google Play IAP 中目标用户的订阅折扣
- javascript - 在我用 php 中的 FILTER_SANITIZE_STRING 检查值后,我是否需要前端 js 中的 htmlspecialchars()
- excel - Excel VBA - 将下拉选择中的值粘贴到列中
- flutter - Flutter:外部小部件的 setState
- ruby-on-rails - ROR - 如何在父模型的范围内使用子模型的范围
- android-studio - 在 Android Studio 上运行从 GitHub 克隆的应用时找不到资源错误
- php - 提取元素
- python-3.x - [python3][windows] 如何用重读字符读取行?
- google-sheets - 索引导致两张纸之间的参数错误,GOOGLE SHEETS