We help IT Professionals succeed at work.

Script that will use PSLoggedON to query servers

I need a script that will query a list of servers in a txt file using PSLoggedon and retrieve a line that has "domain\" in it with the server name as its output txt file.  I need this asap, I will reward pts whenever solution has been reached!

I appreciate the help.
Comment
Watch Question

Commented:
for /f %%A in (list.txt) do (psloggedon \\%%A | find "domain\" >%%A.txt)

Explore More ContentExplore courses, solutions, and other research materials related to this topic.