Category Archives: WMI

Friday Fun Perf Counters with Write-Progress

While working on my course for TrainSignal on managing Windows Servers with PowerShell, I came up with an interesting use of the Write-Progress cmdlet. I was working on the performance monitoring lesson and realized I could use Write-Progress as rudimentary … Continue reading

Posted in PowerShell, Scripting, WMI | Tagged , , , , | Comments Off

Filter Left

When writing WMI queries expressions in Windows PowerShell, it is recommended to use WMI filtering, as opposed to getting objects and then filtering with Where-Object. I see expressions like this quite often: get-wmiobject win32_process -computer $c | where {$_.name -eq … Continue reading

Posted in Best Practices, Google Plus, PowerShell, WMI | Tagged , , | Comments Off

Compress Files By Extension

I never seem to build my test virtual machines with enough disk space. Which means at some point I start dealing with space issues and resort to all sorts of hacks to buy myself a little time. One thing I … Continue reading

Posted in PowerShell, PowerShell v2.0, WMI | Tagged , , , | 7 Comments

Get Process Owner

I’ve been working on my second training course for Train Signal on managing Windows Server 2008 with Windows PowerShell, specifically the lesson on managing processes. I thought I’d share a little tidbit I worked out. In fact, I hope you’ll … Continue reading

Posted in PowerShell, Train Signal, Training, WMI | Tagged , , | 3 Comments

Get Shared Resource

I was poking around WMI the other day in PowerShell and was intrigued by the Win32_Share class. This is a great way to find out what items are shared on a server such as printers and folders, although it’s not … Continue reading

Posted in PowerShell v2.0, WMI | Tagged , , , , | 1 Comment