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
-
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 11 years ago
Answers (1)
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
- 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. - 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 (: