Solved

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

Posted on 2013-10-26
2
981 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 69

Accepted Solution

by:
Qlemo earned 250 total points
ID: 39603271
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
ID: 39617934
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Upgrading from SBS2003 to Windows Server 2012r2 Essentials 13 43
Bulk computer reset 6 22
Exchange 2010 internal URLs 2 40
PowerShell script to remove string in xml file 3 24
Set OWA language and time zone in Exchange for individuals, all users or per database.
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

13 Experts available now in Live!

Get 1:1 Help Now