Windows Dev Center

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.

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

© 2015 Microsoft