Simplified syntax for calculated Properties with Select-Object

Following on my journey in an attempt to make PowerShell work exactly the way I would like it to work I had a look into the syntax for calculated properties with Select-Object. Calculated properties for Select-Object are basically syntactic accidents sugar to add custom properties to objects on the fly (examples are taken from here): … Continue reading Simplified syntax for calculated Properties with Select-Object

WMI query filters with PowerShell syntax instead of WQL

PowerShell comes already with tight integration to WMI with its built-in Get-WmiObject and Get-CimInstance cmdlets. One of the things that people already familiar with PowerShell syntax bothers about WMI is that it comes with its very own query language WQL. While WQL is very similar to SQL. Wouldn't it be nicer if we could use … Continue reading WMI query filters with PowerShell syntax instead of WQL