/build/static/layout/Breadcrumb_cap_w.png

Need to find all account that run services

We inherited a global network that would create Domain Admin accounts at the drop of a hat for anyone or to run any service.  I have about 20 sites around the globe that did this.

Is there a way I can create a Custom Inventory rule that will inventory all the Logon As account names that are not Local, Serivce, Local System, or Network Serivce?

Thanks


1 Comment   [ + ] Show comment
  • If it's one domain, wouldn't it be simpler to create/assign a set of known domain admin (DA) accounts and remove all others? When individuals start whining that they can't do this or that, then have them justify why they need DA rights. Many, many times, it boils down to someone somewhere not doing their homework/discovery properly and deciding that it's just "easier" to give the user DA. - anonymous_9363 10 years ago

Answers (1)

Posted by: rileyz 10 years ago
Red Belt
0

Oh, that sucks for you.

Have a look at the link below, you will need some pretty flash scripting foo to pull this off though.

http://www.petri.co.il/find-user-based-service-accounts-with-powershell-and-command-line.htm

I would start by building the script to do what you need it to do, keeping in mind you will need to used this with a ESD system (like SCCM). God I hope you have a ESD system as it will make your life a lot easier...

After you have bashed out your script, its all about reporting after that...

So thinking about it now I would

  1. Get the scipt to report on what servies wiith a domain account.
    Get that script to output to a share location, get it to name the text file as the computername. Maybe add some fancy text at the start of the file so it will help you out later on.

  2. Since you have all the files in once place, then you can parse all the files for info in a script, if found info you need, then add to another file.

    Tadaaa, cheap ass reporting (:

     
But yeah, good luck,  you will need it!
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ