M
2010-03-25 14:14:12 UTC
Hello:
Is it possible to run PsExec non-sequentially in a batch file? The example
below does not work. I get the output txt files, but they're blank. If I
remove "start" from each line, then everything works fine, but then the
commands run sequentially, so if I have 30 lines, I'd have to wait several
minutes for the entire batch file to complete. Note that I'm only using
ipconfig as a simple example.
Start C:\PsExec\psexec \\Server1 ipconfig /all > c:\temp\Server1.txt
Start C:\PsExec\psexec \\Server2 ipconfig /all > c:\temp\Server2.txt
Start C:\PsExec\psexec \\Server3 ipconfig /all > c:\temp\Server3.txt
Pause
Thank you.
Is it possible to run PsExec non-sequentially in a batch file? The example
below does not work. I get the output txt files, but they're blank. If I
remove "start" from each line, then everything works fine, but then the
commands run sequentially, so if I have 30 lines, I'd have to wait several
minutes for the entire batch file to complete. Note that I'm only using
ipconfig as a simple example.
Start C:\PsExec\psexec \\Server1 ipconfig /all > c:\temp\Server1.txt
Start C:\PsExec\psexec \\Server2 ipconfig /all > c:\temp\Server2.txt
Start C:\PsExec\psexec \\Server3 ipconfig /all > c:\temp\Server3.txt
Pause
Thank you.
--
Regards,
M
MCTS, MCSA
http://SysAdmin-E.com
Regards,
M
MCTS, MCSA
http://SysAdmin-E.com