Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-10-26
2
Medium Priority
?
1,064 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 71

Accepted Solution

by:
Qlemo earned 1000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
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…
Loops Section Overview

916 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