Run Batch Command Without Checking For Confirmation -


i have batch file restarts several computers in center. batch file works fine if ran faster. reason slow when runs computer has been turned off, continues try find computer 15 seconds before moves next one.

can lower time batch command looks computer or have send command , move on next?

i have pasted current batch command below:

shutdown /f /r /m \\vamar-3sthwv1 /t 000 

with ping command believe can it. telling ping command send 1 echo request , &&ing result shutdown command, like:

 ping vamar-3sthwv1 -n 1 >nul && shutdown /f /r /m \\vamar-3sthwv1 /t 000 

that way shutdown command gets executed when ping reached out vamar-3sthwv1 in 1 echo request.


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -