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

Zen Coding for the PowerShell console and ISE

First of all let's clarify what Zen Coding actually is. According to their website: Emmet (formerly known as Zen Coding) is ... ... a web-developer’s toolkit that can greatly improve your HTML & CSS workflow. But what does this have to do with PowerShell? At least I find myself quite often trying to convert PowerShell … Continue reading Zen Coding for the PowerShell console and ISE

Simplified Where-Object for multiple conditions on the same property for PowerShell?

While PowerShell version 3 already introduced a (quite controversial) simplified syntax for the Where-Object cmdlet (alias where). It still doesn't account for a quite common error PowerShell beginners encounter when using where with multiple conditions on the same property. As an example let's say we would like to filter the range 1-10 to get only … Continue reading Simplified Where-Object for multiple conditions on the same property for PowerShell?

Show-CommandGUI an enhanced Show-Command for PowerShell

After my last post (PowerShell tricks - Use Show-Command to add a simple GUI to your functions). I was thinking how one could write a function that would not have the deficiencies that Show-Command has when it comes to providing a GUI for functions. In addition to what Show-Command does I wanted a function that: … Continue reading Show-CommandGUI an enhanced Show-Command for PowerShell

Expanding aliases in PowerShell ISE or any PowerShell file

Further extending my PowerShell ISE module (ISEUtils) I've added a function to convert aliases either in the currently active ISE file or (in case a a path is provided) within any PowerShell file (that way the function can be also used from the PowerShell Console) to their respective definitions. Aliases are very useful when working … Continue reading Expanding aliases in PowerShell ISE or any PowerShell file