• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2031
  • Last Modified:

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.
1 Solution
for /f %%A in (list.txt) do (psloggedon \\%%A | find "domain\" >%%A.txt)

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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