IronPython Blog

IronPython Sample: IPPowerShell

This sample shows how to use PowerShell commands from IronPython by invoking the PowerShell API(s) directly and also by using a nice Python helper class. The samples use both of these techniques to detect whether a host meets some of the minimum system requirements for playing Age of Empires III Trial edition.  The readme.htm in the download (download page: IronPython-1.0-Samples-IPPowerShell.zip) will get you started.

By utilizing managed PowerShell API(s) from IronPython, it becomes downright easy to perform a runtime inspection of the system. As an example, you can determine how much memory your video card has installed on it using only a couple lines of IronPython code. To make working with PowerShell even easier, the “powershell.py” module (included with this sample) allows you to run PowerShell cmdlets in a very elegant and object-oriented manner.

Published Thursday, September 14, 2006 5:33 PM by IronPython

Comments

 

James Manning's blog said:

Posted just for Ravi :)  IronPython Sample: IPPowerShell  This sample shows how to use PowerShell commands...
September 14, 2006 10:00 PM
 

pigfoot’s weblog » CLR Inside Out: IronPython said:

September 14, 2006 11:49 PM
Anonymous comments are disabled

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