- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to get service information with the WMI method using PowerShell?
You can also use the WMI method to get the services information instead of standard command Get-Service.
Command
To get the service information on the server, you need to use WMI class Win32_Service.
Get-WmiObject -Class Win32_Service
Output
ExitCode : 0 Name : Browser ProcessId : 0 StartMode : Manual State : Stopped Status : OK ExitCode : 0 Name : BTAGService ProcessId : 1468 StartMode : Manual State : Running Status : OK ExitCode : 0 Name : BthAvctpSvc ProcessId : 1460 StartMode : Manual State : Running Status : OK ExitCode : 0 Name : bthserv ProcessId : 1480 StartMode : Manual State : Running Status : OK
Command
You can filter the specific output with Select-Object.
Get-WmiObject win32_Service | Select-Object Name, State, Startmode
Output
Name State Startmode ---- ----- --------- AdobeARMservice Running Auto AdobeFlashPlayerUpdateSvc Stopped Manual AJRouter Stopped Manual ALG Stopped Manual AppIDSvc Stopped Manual Appinfo Running Manual AppMgmt Stopped Manual AppReadiness Stopped Manual AppVClient Stopped Disabled AppXSvc Stopped Manual AssignedAccessManagerSvc Stopped Manual AudioEndpointBuilder Running Auto Audiosrv Running Auto autotimesvc Stopped Manual AVP20.0 Running Auto AxInstSV Stopped Manual BDESVC Stopped Manual BFE Running Auto BITS Running Auto Bluetooth Device Monitor Running Auto Bluetooth OBEX Service Running Auto
To get the services on a remote computer(s) using WMI.
Get-WmiObject win32_Service –ComputerName Win7,Test-PC | Select- Object Name, State, Startmode
- Related Articles
- How to get the running processes with the WMI object using PowerShell?
- How to uninstall software using WMI in PowerShell?
- How to get the disk information using PowerShell?
- How to get the specific process(es) information using PowerShell?
- How to get Sim service information in android?
- How to stop service with their dependent services using PowerShell?
- How to remove Windows service with PowerShell?
- How to stop a windows service using PowerShell?
- How to start a windows service using PowerShell?
- How to retrieve specific file(s) information using Get-ChildItem in PowerShell?
- How to display specific properties from Get-Service output in PowerShell?
- How to get all properties and methods available for the service in PowerShell?
- How to stop the service with the display name in PowerShell?\n
- How to stop service with their dependent services in PowerShell?
- How to start windows service with display name in PowerShell?

Advertisements