Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 696 Bytes

File metadata and controls

20 lines (15 loc) · 696 Bytes
description Runspace02 (C#) Code Sample
ms.date 09/13/2016
ms.topic reference
title Runspace02 (C#) Code Sample

Runspace02 (C#) Code Sample

Here is the C# source code for the Runspace02 sample. This sample uses the System.Management.Automation.Runspaceinvoke class to execute the Get-Process cmdlet synchronously. Windows Forms and data binding are then used to display the results in a DataGridView control

Code Sample

:::code language="csharp" source="~/../powershell-sdk-samples/SDK-2.0/csharp/Runspace02/Runspace02.cs" range="11-82":::

See Also

Windows PowerShell SDK