Click to Rate and Give Feedback
MSDN
MSDN Library
Using Windows PowerShell APIs

Microsoft® Windows® PowerShell supports the creation of cmdlets for use within automation scripts. This section contains code examples that show how various APIs are used when creating cmdlets. For more information about cmdlets, see Windows PowerShell Cmdlets.

For more information about about the guideline that should be followed when developing cmdlets, see the following topics.

Example Description

Overriding Virtual Methods

Show base examples of how to override the virtual methods provided by the Cmdlet class.

Writing Windows PowerShell Snap-ins

Shows examples of how to write a Windows PowerShell snap-in and a custom Windows PowerShell snap-in.

Registering Cmdlets with Windows PowerShell

Shows the commands used to register a Windows PowerShell snap-in.

Validating Parameter Input

Shows an example of using the validate attributes to validate cmdlet input such as input range and input pattern.

Implementing the Get-Process Cmdlet

Shows an implementation of the sample Get-Process cmdlet.

See Also

Footer image


© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker