SCCM软件中心 – 设置“营业时间以外的自动安装”

我设法使用基线configuration通过补救来为我的客户设置营业时间。

我想为“自动安装或卸载所需的软件并仅在指定营业时间之外重新启动计算机”checkbox执行相同的操作。

背景资料

我们用来安装更新一旦进来…用户不喜欢它的.NET搅动他们的电脑更新,所以我设置安装截止时间为7天,当他们被发现通过ADR。

设置说“在截止date之后 – 在维护窗口之外安装”我有更新,刚刚进入我的电脑,并说“你想用这些做什么”

那么,我会喜欢这些更新安装在第一个可用的维护窗口,我想我需要检查这个小盒子,或者他们今晚安装,不pipe我是否做任何事情?

那么,我会喜欢这些更新安装在第一个可用的维护窗口,我想我需要检查这个小盒子,或者他们今晚安装,不pipe我是否做任何事情?

解决schemehttp://www.myitforum.com/forums/Software-Center-Business-Hours-and-Computer-Maintenance-m244096.aspx

该链接将带您到另一个有我正在寻找的脚本的链接:

电源shell

$Return = Invoke-WmiMethod -Namespace “Root\ccm\ClientSDK” -Class CCM_ClientUXSettings -Name SetAutoInstallRequiredSoftwaretoNonBusinessHours -ArgumentList @($TRUE) -ComputerName $ComputerName -ErrorAction STOP 

VBScript中

 Set objUX = GetObject("winmgmts:\\.\root\ccm\ClientSDK:CCM_ClientUXSettings") Set inParam = objUX.Methods_.Item("SetAutoInstallRequiredSoftwaretoNonBusinessHours").inParameters.SpawnInstance_() inParam.AutomaticallyInstallSoftware = "True" Set result = objUX.ExecMethod_("SetAutoInstallRequiredSoftwaretoNonBusinessHours", inParam) 

或从WMIC.exe的命令行( /node:PC_Name可以在wmic之后插入/node:PC_Name在远程系统上执行):

 wmic /namespace:\\Root\ccm\ClientSDK CLASS CCM_ClientUXSettings CALL SetAutoInstallRequiredSoftwaretoNonBusinessHours 1