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

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