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.
niwuserAsked:
Who is Participating?
 
GovvyConnect With a Mentor Commented:
wmic service get displayname, startname
0
 
niwuserAuthor Commented:
Perfect  - short and sweet, thanks govvy.
0
All Courses

From novice to tech pro — start learning today.