uninstall-managementpack operation
The uninstall-managementpack operation uninstalls the specified management pack from the Microsoft System Center Operations Manager 2007 management server.
The following table describes the <items> XML and request elements for the uninstall-managementpack operation:
Adapter request elements for the uninstall-managementpack operation
The following figure illustrates a sample adapter request for the uninstall-managementpack operation:
Sample adapter request for the uninstall-managementpack operation
<scom-request>
<operation-name>uninstall-managementpack</operation-name>
<command-request>
<timeout-secs>120</timeout-secs>
<command-parameters>
<managementpack>
<managementpack-name>Microsoft.Windows.Client.BusinessCritical</managementpack-name>
</managementpack>
<preview>true</preview>
</command-parameters>
</command-request>
</scom-request>
<operation-name>uninstall-managementpack</operation-name>
<command-request>
<timeout-secs>120</timeout-secs>
<command-parameters>
<managementpack>
<managementpack-name>Microsoft.Windows.Client.BusinessCritical</managementpack-name>
</managementpack>
<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 uninstall-managementpack operation
<scom-response>
<metadata>
<status>success</status>
<count>1</count>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>./Microsoft.EnterpriseManagement.OperationsManager.ClientShell.
Startup.ps1;uninstall-managementpack -managementpack (get-managementpack
-name Microsoft.Windows.Client.BusinessCritical) -whatif</command>
<execution-milliseconds>4875</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
<count>0</count>
</metadata>
<output>
<line>What if: Performing operation "Uninstall-ManagementPack" on Target
"Microsoft.Windows.Client.BusinessCritical".</line>
</output>
</command-output>
</commands-output>
</scom-response>
<metadata>
<status>success</status>
<count>1</count>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>./Microsoft.EnterpriseManagement.OperationsManager.ClientShell.
Startup.ps1;uninstall-managementpack -managementpack (get-managementpack
-name Microsoft.Windows.Client.BusinessCritical) -whatif</command>
<execution-milliseconds>4875</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
<count>0</count>
</metadata>
<output>
<line>What if: Performing operation "Uninstall-ManagementPack" on Target
"Microsoft.Windows.Client.BusinessCritical".</line>
</output>
</command-output>
</commands-output>
</scom-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*