it-infra
asked on
PSEXEC on Subnet or vLAN
Hello,
I run the below command on a bunch on computers on a text file:
Is there anyway to run it on a subnet like 192.168.5.x ?
Thanks
I run the below command on a bunch on computers on a text file:
psexec @computers7.txt -c -f -s -d -u domain\user -p password \\server\folder\file.bat
Is there anyway to run it on a subnet like 192.168.5.x ?
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
for /L %x in (1,1,254) do psexec \\192.168.5.%x -c -f -s -d -u domain\user -p password \\server\folder\file.bat
Seems good, however how can I reduce the time while connecting to each IP?
ASKER
-n time in seconds is the solution, Thanks
ASKER