Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Adapted Type System   (RSS)

Hate Add-Member? (PowerShell's Adaptive Type System to the Rescue)

Do you hate Add-Member as much as I do? Wait - maybe you aren't familiar with Add-Member or the glory of PowerShell's Adaptive Type System. (ATS). When I looked at the .NET type system, my reaction was "....almost". I'm not trying to throw a rock at .NET

Encoding Operations Knowledge

One of the primary goals of Windows PowerShell is to encode operations knowledge. Consider the example of finding out what domain role a computer plays. If you look at the WMI class WIN32_COMPUTERSYSTEM, you'll see that it tells you this information:
 
Page view tracker