Monday, July 3, 2017

What are those brackets [] in PowerShell!!??
When you query class instances, you'll see a numer of properties available. Direct or inherited from parent classes.
To use or filter on these class instance properties in PowerShell, you need to use a specific syntax.
You either enclose with single quotes or escape with backtick.
In this example i'm using an instance of the 'Windows Server' class from one of the default SCOM management packs.
This class inherits the property 'IPAddress' from the base class 'Windows Computer'.
Here are the useable options for PowerShell:

About Me

Hi, i'm Michiel Wouters and i'm an IT Consultant at Didacticum.
Working in the IT business since 2001. Affinity with Cloud (Azure, O365), automation (VBScript/PowerShell/Application Delivery, Data Center Automation), Virtualization, and the Microsoft System Center suite