Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

Command Line Way to View Log On As for Windows Services

We just had an engineer leave, and we want to change the admin password.  However, with 60 servers, it might be tough to change the password without knowing which services are attached to that name.

Does anyone have a way to run a script, via command line, that would export this data and show me who the Log on as service is?

That way - I could just go and find the ones with the user account that left and change those.

I was tinkering with the sc command - and it shows a lot of data, but not the data I want to see.

Thanks for your help.
0
niwuser
Asked:
niwuser
1 Solution
 
GovvyCommented:
wmic service get displayname, startname
0
 
niwuserAuthor Commented:
Perfect  - short and sweet, thanks govvy.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now