Tracking Service Account

Haris Ibrahim 1 Reputation point
2021-06-23T08:02:41.98+00:00

I have a requirement to find and track a 1 AD account wherever it is being used across the network as a service account.
How can i achieve this thing. Can DC event viewer provide me such information.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 86,026 Reputation points
    2021-06-23T08:51:10.41+00:00

    Hi @Haris Ibrahim ,

    This can be somewhat of a challenge, but should be doable, one way would be to parse the Security event-log on every domain-joined machine by looking for logins by that domain service account.

    Check the older forum threads below that discuss the same topic:

    ----------

    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,
    Leon

    0 comments No comments

  2. Vicky Wang 2,741 Reputation points
    2021-06-24T09:47:05.807+00:00

    Hi,

    Thank you for posting in our forum.
    I think you can try to use the script method, and you can also refer to the method in the link
    To get list of services using a particular account you can do:

    Get-WmiObject "win32_service" -Filter "StartName='domain\user'"
    To change the password for these, you can do:

    Get-WmiObject "win32_service" -Filter "StartName='domain\user'" |
    %{$.StopService();$.Change($null,$null,$null,$null,$null,$null,$null,"blah");}

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

    Hope this information can help you
    Best wishes
    Vicky

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.