In this exercise, you will explore the use of the Get-Service cmdlet as you retrieve service information from your computer. You will sort and filter the output from the Get-Service cmdlet. In the second exercise, you will use WMI to retrieve similar information. You should compare the two techniques for ease of use and completeness of data.
Obtaining Windows Service information by using the Get-Service cmdlet
Start the Windows PowerShell console.
From the Windows PowerShell prompt, use the Get-Service cmdlet to obtain a listing of all the services and their associated status. This is shown here:
A partial listing of the output from this command is shown here:
Status Name DisplayName ...