Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SnapInsType

System Center

Updated: August 10, 2011

Applies To: Operations Manager 2007 R2

SnapInsType complex data type is used to specify PowerShell snap-ins that will be pre-loaded for use by a Windows PowerShell script.


<xsd:complexType name="SnapInsType">
  <xsd:sequence>
    <xsd:element name="SnapIn" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
  </xsd:sequence>
</xsd:complexType>

A SnapInsType data type contains a list of one or more Windows PowerShell snap-ins that will be pre-loaded for use by the Windows PowerShell script. This method of loading snap-ins is preferred to loading them within the script, as the Operations Manager agent uses this list to optimize loading and unloading of snap-ins. Each snap-in to be loaded must be listed as a distinct child SnapIn element within the SnapIns element. The SnapIn names used here correspond to the "Name" value returned by the get-pssnapin cmdlet.

 

   

Schema Type

Microsoft.Windows.PowerShellSchema

Library

Microsoft.Windows.Library

 
Show:
© 2015 Microsoft