Can I psexec the whole subnet, but not the domain?
July 18, 2007 1:33 AM   Subscribe

Is there any way I can use Sysinternals' psexec tool to work on an entire subnet, rather than an entire domain?
posted by xvs22 to Computers & Internet (3 answers total)
 
Another acceptable way to do this would be a for...next loop in a .cmd file - one that does the equivalent of:

for a = 1 to 255
psexec \\192.168.0.a prog.exe
next a

By the way, this is for pushing out an auditing tool to all the PC's in a particular IP range, not something malicious.
posted by xvs22 at 1:57 AM on July 18, 2007


Wow, code on Metafilter is annoying (yeah yeah live preview):
for(my $i=0; $i < 255; $i++) { #delete this comment:
   system("psexec \\192.168.0.$i prog.exe");
}

posted by effugas at 2:10 AM on July 18, 2007


cmd.exe:
for /L %x in (1,1,254) do psexec \\192.168.1.%x command
posted by rhizome at 8:19 AM on July 18, 2007


« Older Community college to med school?   |   Where to hang out in Melbourne Newer »
This thread is closed to new comments.