Delen via

GetProc01 Code Samples

Here are the code samples for the GetProc01 sample cmdlet. This is the basic Get-Process cmdlet sample described in Creating Your First Cmdlet. A Get-Process cmdlet is designed to retrieve information about all the processes running on the local computer.

For complete sample code, see the following topics.

Language Topic
C# GetProc01 (C#) Sample Code
VB.NET GetProc01 (VB.NET) Sample Code

See Also

Windows PowerShell Programmer's Guide

Windows PowerShell SDK