Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用SCCM 2012中的应用程序在VM或主机上安装软件的Powershell脚本。。?_Powershell_Cloud_Sccm - Fatal编程技术网

使用SCCM 2012中的应用程序在VM或主机上安装软件的Powershell脚本。。?

使用SCCM 2012中的应用程序在VM或主机上安装软件的Powershell脚本。。?,powershell,cloud,sccm,Powershell,Cloud,Sccm,我正在使用Orchestrator runbook,其中有一个“.net运行脚本”,它甚至运行Powershell脚本,我必须编写一个Powershell脚本,用于查询SCCM 2012中的SW(作为参数提供),并将其安装在VM上(作为参数提供)。我已经在SCCM 2012的软件库中列出了作为应用程序的软件列表。如果您使用Orchestrator,一个更简单的解决方案(更符合Orchestrator)是安装“System Center Integration Pack for System Ce

我正在使用Orchestrator runbook,其中有一个“.net运行脚本”,它甚至运行Powershell脚本,我必须编写一个Powershell脚本,用于查询SCCM 2012中的SW(作为参数提供),并将其安装在VM上(作为参数提供)。我已经在SCCM 2012的软件库中列出了作为应用程序的软件列表。

如果您使用Orchestrator,一个更简单的解决方案(更符合Orchestrator)是安装“System Center Integration Pack for System Center 2012 Configuration Manager”,并使用其中定义的活动:


您可以:

  • 将计算机添加到现有集合中,该集合中已存在要安装的软件的活动部署-使用“添加集合规则”活动将计算机添加到正确的集合中:

  • 专门为计算机创建新集合,并使用“创建集合”和“部署应用程序”活动将应用程序部署到集合:和