Get-Service should return the user account the services are running under
The Get-Service cmdlet should return the service account associated to each service.
We can get this information easily from the Win32_Service WMI class, but to me, it should be returned by Get-Service.
Checked with PS v5 without luck...
Thanks!
Created an Issue on GitHub to put this in our backlog: https://github.com/PowerShell/PowerShell/issues/2579
Feel free to continue voting on this item here to drive prioritization.
7 comments
-
AKMC_117 commented
I'm happy to vote on this one. Get-Service should return ALL information, without exception, that you can get from the GUI, you shouldn't need to fluff around with WMI. Otherwise, what's the point?
-
Ilya Sazonov commented
Get-Service is based on .Net System.ServiceProcess.ServiceController Class.
Thus this class should be expanded first. -
Joe Powell commented
I was surprised this still hasn't been added. Common sense dictates that get-service should return this information.
-
Ken Hamilton commented
Full Service property support would be greatly desired - including recovery policies
-
Miguel Guarachi commented
Also see and Flter by Startup type...
-
Chris Magnuson commented
I have bumped into this in the past and been very frustrated by it, please give feature parity to the object returned by get-service with what is displayed and what I can edit through the service's properties using services.msc.
-
EY commented
I would also like to see Get-Service include the Startup Type for the service