Link to home
Start Free TrialLog in
Avatar of mraineynola
mraineynola

asked on

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

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?
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mraineynola
mraineynola

ASKER

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.