kayedj
09-12-2006, 09:01 PM
Hi there
I administer a network in a school and I would like to force all the pupils to go home at a certain time. I have the following extract from a batch file to shutdown a computer room (25 pc's), all using winXP
shutdown -s -t 90 -m \\BCRX1 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX2 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX3 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX4 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX5 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX6 -c "Time to go home!"
etc
the script works fine - to a point.. if one of the computers is already turned off, it will wait for 30secs - 1min to get a reply before moving onto the next one, which is causing delays in running the script. Is there a way to tell it to only wait 3secs for a reply before going on to the next computer?
many thanks
I administer a network in a school and I would like to force all the pupils to go home at a certain time. I have the following extract from a batch file to shutdown a computer room (25 pc's), all using winXP
shutdown -s -t 90 -m \\BCRX1 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX2 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX3 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX4 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX5 -c "Time to go home!"
shutdown -s -t 90 -m \\BCRX6 -c "Time to go home!"
etc
the script works fine - to a point.. if one of the computers is already turned off, it will wait for 30secs - 1min to get a reply before moving onto the next one, which is causing delays in running the script. Is there a way to tell it to only wait 3secs for a reply before going on to the next computer?
many thanks