Windows 7 Forums


Windows 7: Remote Shutdown advanced Batch Job

10 Jun 2011   #1

Windows 7 profesional
 
 
Remote Shutdown advanced Batch Job

Hi!
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

:yes
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
:no
echo Computer shutdown disabled
@pause




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

Reply

 Remote Shutdown advanced Batch Job problems?



Thread Tools



Similar help and support threads for: Remote Shutdown advanced Batch Job
Thread Forum
Run Batch File On Remote Computer Without PsExec Installation & Setup
Advanced tab in remote computer management Network & Sharing
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


All times are GMT -5. The time now is 10:05 AM.



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