The following PowerShell command would give me a list of all windows services:
Get-WmiObject -Class Win32_Service
What if I want to use this object to display one certain service only? Lets say I want to use it to display the spooler service only. I don't want to use the Get-Service
cmdlet. Thought Select-Object
would help me, but that only selects property names, not names of services.