Skip to content

Get-Service should return the user account the services are running under #2579

@joeyaiello

Description

@joeyaiello

Currently the #1 item on the PowerShell UserVoice: https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/12336204-get-service-should-return-the-user-account-the-ser

Arnaud Petitjean:

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.

Expected behavior

Get-Service Spooler | Format-List Name,LogOnAs

Name : Spooler
LogOnAs : Local System

Actual behavior

Get-Service Spooler | Format-List Name,LogOnAs

Name : Spooler

Environment data

All versions of PowerShell

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions