Solved

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

Posted on 2013-10-26
2
1,028 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

617 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