I want to create a script in python that will read a .txt file which contains a list of computers and then connect in each one of these computers and list a couple of properties of its services, like DisplayName, Path, State, etc. I was able to completely do what I need using WMIC, but I would to do that in Python.
Wmic /node:@computers.txt /user:administrator service get SystemName,DisplayName,PathName,StartName,State /format:CSV
Does anybody knows how we can translate the command above to a script in Python? Anybody has any sample of service enumeration in remote computers in Pyton that is willing to share?