Use ConvertFrom-Csv to convert quser output to a PowerShell object

I ran across a scenario where I needed to log off a user from a number of computers without knowing which computers they were logged into. The best way I found to do this programmatically was to use the quser (query user) and logoff commands. Unfortunately, the quser command outputs each record as a string. It would be nice if this was a PowerShell object so each property is easily accessible.

Read More

Create a PowerShell Grid Widget dashboard to display Pending Restart status

I needed a way to display the health state of the Server Pending Restart Monitor from the Server Pending Restart management pack in a SCOM dashboard. SCOM does not have a native method to display the health state of all instances of a specific monitor, so fortunately Hugh Scott pointed me to PowerShell Grid Widgets as a possible solution. This article discusses how I approached the problem and how I ended up at this PowerShell Grid Widget dashboard solution.

Read More