用于系统中心 2012 端点保护的 powershell cmdlet?

用于系统中心 2012 端点保护的 powershell cmdlet?

有人知道 System Center 2012 中是否有用于端点保护的 cmdlet 吗?

我正在尝试强制从系统中心 2012 更新端点保护的定义,但看起来没有这样的方法可以做到。每次我有一台新电脑,我都必须等待系统中心安装客户端,我不知道什么时候会安装它,而且我无法自己手动安装它。

有多种方法可以使用 powershell 与 system center 配合使用来编写脚本,但我找不到用于端点保护的 cmdlet

答案1

没有这样的 cmdlethttp://technet.microsoft.com/en-us/library/jj821822(v=sc.20).aspx

但是,如果您在 xml 文件中导出端点保护设置并将其放置在网络中的某个位置,则可以按照以下方式使用 powershell 推送安装:

$computers = Get-Content "C:\computer.txt"

foreach ($computer in $computers) {


#The location of the file  
    $Install = "\\$computer\C$\Software"

#The Install string can have commands aswell
  $InstallString = "$Install\scepinstall.exe /s /q //policy \\share\SCEpolicy\endpoint.xml"

    ([WMICLASS]"\\$computer\ROOT\CIMV2:Win32_Process").Create($InstallString)
#Output the install result to your Local C Drive
    Out-File -FilePath c:\installed.txt -Append -InputObject "$computer"} 

默认情况下,scepintall.exe 和策略都位于 SCCM 上的 C:\Sources。

相关内容