我正在寻找一种方法来使用 PowerShell 在远程计算机上安装缺少的 SCCM 更新。
我遇到了这个功能,但无法让它在远程计算机上运行任何想法?
function Install-MissingUpdate {
param (
$computer = "Remote-Computer"
)
([wmiclass]'ROOT\ccm\ClientSDK:CCM_SoftwareUpdatesManager').InstallUpdates([System.Management.ManagementObject[]] (
Get-WmiObject -Query 'SELECT * FROM CCM_SoftwareUpdate' -namespace 'ROOT\ccm\ClientSDK'))
}