Solved

Get-service and Get-WmiObject win32_service return very different list of services

Posted on 2013-10-26
2
957 Views
Last Modified: 2013-11-01
When I run the powershell commands on my Exchange Server, Get-service and Get-WmiObject win32_service I get very different lists of services. The Get-WmiObject command only returns 11 services, while the Get-service command returns the long list of services that you see when you open the services applet.

This does not seem to be the case on my domain controller, where both commands return a long list of services.

Why would there be a difference?
0
Comment
Question by:mraineynola
2 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 250 total points
Comment Utility
Both should show the same results, so this certainly is an error. AFAIK there are no permission issues, but it would be interesting if you get the same or similar reduced set of services with WMI when
a) providing credentials
b) trying from a different PC
c) using a filter excluding some services, like -Filter "Name like 'A%' "
0
 

Author Closing Comment

by:mraineynola
Comment Utility
I was logged on directly to the server that was giving me the odd results, so I rebooted it after hours and then everything came back correctly. Oh well, that's Windows.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Hi all.   The other day I had to change the passwords for a bunch of users on the fly. Because they were so many, I decided to do it in an automated way and I would like to share it with you all.   If you are not doing it directly in a Domain Co…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now