Unsupported content This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

install-managementpack operation


The install-managementpack operation installs the specified management pack on the Microsoft System Center Operations Manager 2007 management server.

The following table describes the <items> XML and request elements for the install-managementpack operation:

Adapter request elements for the install-managementpack operation

The following figure illustrates a sample adapter request for the install-managementpack operation: 

Sample adapter request for the install-managementpack operation

<scom-request>
 <operation-name>install-managementpack</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-parameters>
     <sourcefile-path>C:\packs\Microsoft.Windows.Client.BusinessCritical.xml
      </sourcefile-path>
     <preview>true</preview>
   </command-parameters>
 </command-request>
</scom-request>


The following figure illustrates the adapter response for the sample request: 

Sample adapter response for the install-managementpack operation

<scom-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>./Microsoft.EnterpriseManagement.OperationsManager.ClientShell.
       Startup.ps1;install-managementpack -filepath
        C:\packs\Microsoft.Windows.Client.BusinessCritical.xml -whatif</command>
       <execution-milliseconds>4969</execution-milliseconds>
       <exit-code>0</exit-code>
       <status>success</status>
       <count>0</count>
     </metadata>
     <output>
       <line>What if: Performing operation
        "Microsoft.Windows.Client.BusinessCritical" on Target "M1".</line>
     </output>
   </command-output>
 </commands-output>
</scom-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*