询问 Microsoft.Update.AutoUpdate 或者 Powershell 报告级别不正确 NotificationLevel

如果我用 Sconfig> 5) 更新中心的参数 Windows 显示为“手动”

但是当我在以下要求启动时 PowerShell:

(New-Object -ComObject "Microsoft.Update.AutoUpdate").Settings

它被指示 NotificationLevel = 4, 更新的自动安装是什么意思 (4).

我的 RegTree 更新 Windows 看起来像: HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ WindowsUpdate HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ WindowsUpdate \ AU REG_DWORD: NoAutoUpdate: 1

我也试过:

PS C:\Users\Administrator> $WUSettings = (New-Object -com "Microsoft.Update.AutoUpdate").Settings
PS C:\Users\Administrator> $WUSettings.NotificationLevel=1
PS C:\Users\Administrator> $WUSettings.save()
PS C:\Users\Administrator> (New-Object -com "Microsoft.Update.AutoUpdate").Settings


NotificationLevel : 4
ReadOnly : False
Required : True
ScheduledInstallationDay : 0
ScheduledInstallationTime : 3
IncludeRecommendedUpdates : True
NonAdministratorsElevated : True
FeaturedUpdatesEnabled : False

但是,正如您所看到的,他仍然报告 NotificationLevel = 4. 我的问题:

如何了解错误信息告诉我哪种方法?

为什么他告诉我不正确的信息?

如何解决它?
已邀请:

龙天

赞同来自:

特性 IAutomaticUpdates :: Settings, 你读过哪个,告诉你更新中心本身 Windows 考虑这些设置。 因此这是最可靠的信息来源。

更改参数 IAutomaticUpdates :: Settings :: NotificationLevel B的不支持。 Windows 10. 出于原因,不幸的是应用兼容性所必需的, IAutomaticUpdates :: Settings :: Save 将 "成功的", 但实际上会改变这个参数。 看
https://docs.microsoft.com/en- ... level
.

观察到的行为的最可能原因是您正在尝试配置更新中心的参数。 Windows 在PK S. Windows 10 家 (或者与“初始”之一 SKU 在一些市场). 这些 SKU 不支持变化 NotificationLevel. 房间 SKU Windows 10 管理能力,如数字 SKU Professional 和 Enterprise, 允许您使用组策略或移动设备管理配置自动更新参数。

要回复问题请先登录注册