Creating custom types in PowerShell, revisited for v2
In June, I blogged on creating custom types within PowerShell. In PowerShell v2, released with Windows 7 and Windows Server 2008 R2, things are a bit easier. Now, the syntax for adding properties is far nicer, as you can pass a hashtable of values to add-member. Namely, the previous example of enumerating the applications run […]
January 20, 2010
· Jouni Heikniemi · 3 Comments
Tags: PowerShell · Posted in: .NET
PowerShell: PSObject, custom types and the add-member cmdlet
PowerShell is .NET-based in the sense that it allows reasonably free manipulation of CLR objects. However, the shell language differs drastically from the familiar object-oriented languages that are typically used with classes and objects. In this post, I’ll discuss some of the aspects involved in handling custom objects in PowerShell. Note: I have posted an […]
June 14, 2009
· Jouni Heikniemi · 4 Comments
Tags: PowerShell · Posted in: .NET