Export (0) Print
Expand All

Cmdlet.Invoke Method

Invokes a cmdlet object. The variants of this method can invoke a cmdlet that returns a collection of results or a strongly-typed enumerator.

This method allows you to invoke any cmdlet that derives directly from the Cmdlet class. This method cannot be called to invoke cmdlets that derive from the PSCmdlet class.

NameDescription
Cmdlet.Invoke ()Invokes a cmdlet object and returns a collection of results.
Cmdlet.Invoke ()Invokes a cmdlet object, and returns a strongly-typed enumerator.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft