Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Remote Shutdown advanced Batch Job

10 Jun 2011   #1

Windows 7 profesional
Remote Shutdown advanced Batch Job

I've created a batch file on my machine that will shutdown all the computers on my network. Here is my coding.
@echo off
echo Would you like to shut down all the computers on the network
set /p choice=(Yes or No)
if '%choice%'=='Yes' goto :Yes
if '%choice%'=='yes' goto :Yes
if '%choice%'=='No' goto :No
if '%choice%'=='no' goto :No

shutdown -s -t 20 -m \\computername
shutdown -s -t 20 -m \\computername
shutdown -s -t 20 -m \\computername
shutdown -s -t 20 -m \\computername
shutdown -s -t 20 -m \\computername
echo Computer shutdown disabled

I would like to know if there is a way that I could add code that would tell me that if a computer is not responding it would say it is shut down.

My System SpecsSystem Spec


 Remote Shutdown advanced Batch Job

Thread Tools

Similar help and support threads for2: Remote Shutdown advanced Batch Job
Thread Forum
Solved Is remote shutdown and turn on possible using W7's Remote Desktop? Network & Sharing
Run Batch File On Remote Computer Without PsExec Installation & Setup
Advanced tab in remote computer management Network & Sharing
Batch file to de-fragment, backup, then shutdown? General Discussion
Advanced Disk Cleanup - Create Shortcuts Without A Batch File! Performance & Maintenance
Creating .batch to run at shutdown Performance & Maintenance
Solved Auto shutdown batch file help General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:06 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33