How can I list the user account names that a Service is using on a PC?

Midiman 71 Reputation points
2021-08-11T13:08:36.993+00:00

Hi, how can I list the user account names that a Service is using on a PC?

I am only interested in the the Services that have been configured to run under users accounts, and not the NT Authority or Systems ones etc.

I would like to scan all of our machines. so that I can see what Service and/or Services are using user accounts.

Is this possible.

Thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,080 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,818 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP
    2021-08-11T13:53:23.647+00:00

    Here you go.
    https://devblogs.microsoft.com/scripting/the-scripting-wife-uses-powershell-to-find-service-accounts/

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. Dave Patrick 426K Reputation points MVP
    2021-08-12T01:14:11.6+00:00

    Just checking if there's any progress or updates?

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Dave Patrick 426K Reputation points MVP
    2021-08-12T23:37:23.65+00:00

    You'll probably need to build a list of computers then loop through the computer list.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments