Tag Archives: WMI

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

Find Non System Service Accounts with PowerShell and WMI

As easy as Get-Service is to use in PowerShell, it has one limitation for IT Pros: it can’t show you what account the service is running under. In old school terms, “What is the service account?” Fortunately you can get … Continue reading

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

Get Properties with Values

One of my nuisance issues when using WMI with Windows PowerShell, is that when looking at all properties I have to wade though many that have no value. I’d prefer to only view properties that have a populated value. Here’s … Continue reading

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

Get Local Administrators with WMI and PowerShell

Earlier this week I was helping someone out on a problem working with the local administrators group. There are a variety of ways to enumerate the members of a local group. The code he was using involved WMI. I hadn’t … Continue reading

Posted in PowerShell v2.0, Scripting, WMI | Tagged , , , , , , , | 12 Comments