troubleshooting Question

script for querying which services run under administrator account?

Avatar of hakalugi
hakalugi asked on
Windows NetworkingWindows Server 2003Windows Server 2008
3 Comments1 Solution538 ViewsLast Modified:

Anyone have a script that can be run on the server console that will report back which of the local services use the domain administrator account for 'log on as' ?   ideally, the value one searches on would be a prompted input in the script ("please enter domain\username to match")  

or even better, it would simply output the username used for all local services to a csv then I could check after the fact. (service name, starts-in-path, "log on as" user, startup-type.

would be useful in planning for high-level account password changes.

bonus: run on one server, and prompt the user for hostnames to query, or pull those hostnames from a text file (host1 <cr> host2 <cr>) assuming the user you ran the script on host0 had the rights to query the other hosts.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros