Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > PsTools
  New Posts New Posts RSS Feed - psexec @file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

psexec @file

 Post Reply Post Reply
Author
Message
johnsco View Drop Down
Newbie
Newbie


Joined: 22 June 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnsco Quote  Post ReplyReply Direct Link To This Post Topic: psexec @file
    Posted: 22 June 2006 at 3:14pm

I have a *.txt file with a list of IP addresses residing in C:\test.  The name of the file is ip.txt.  Could someone give me an example of using the command @file for psexec?

Thanks

Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Status: Offline
Points: 5131
Post Options Post Options   Thanks (0) Thanks(0)   Quote Karlchen Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2006 at 7:36am
Something like this?
psexec @C:\test\ip.txt -u adminuser -p password ipconfig /all >> C:\test\ipconf_result.txt


For each IP address in the file C:\test\ip.txt
psexec will try to connect to the remote machine <IP>
launch the command "ipconfig /all" and
collect all screen output of "ipconfig /all" in the file C:\test\ipconf_result.txt

Hope this example illustrates the usage of "@file" on the psexec commandline.

Karl
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down