Ever since I found out about PowerShell’s extensible type system, I’ve been in love with it. The ability to add methods and properties to existing .NET types is just too cool. For example, I’ve added a CanPing() method to the String type. Whenever I have a variable containing an address:
[string]$computer = “Server2”
I can quickly see if it’s pingable …