Sunday, 4 August 2013

How to Do a Remote Shutdown for a PC on a LAN.

Open notepad by clicking to Start menu=> All Programes=> Accessories=> Notepad. Or, you can just type "notepad", without quotes, into the start menu in Run and hit enter.
  • Copy the following code:

 @echo off
 :W
if %time%==00:00:00.00 goto :X
goto :W
 :X
shutdown.exe /s /f /t 60 /c "Go to bed for sleeep!"

This constantly checks the time to see if it is midnight and, if it is, it shutdown the computer with the message "Go to bed for sleep!"
  • Change the if %time%== part to a time of your wish. It should be in this format:- (HH:MM:SS.MS) and in 24 hours format otherwise it won't work.
  • Go to the File=> Save As
Change the "Save as type" box to "All Files"
  • Type "timer.bat" into file name and click "Save"

  • Double click the file. A blank command prompt screen should appear.
  • Leave this window open while you do your work.
  • When the time you particular in step 3 comes around, your computer should display a message for one minute, then shut down.
  • If you want to abort the shutdown, press the Windows Key (the key with the Microsoft logo on it) + R.
Type "shutdown -a", without quotes into the window that appears & hit Enter. A Command Prompt window should appear, then disappear. A balloon similar to this one should appear.

No comments:

Post a Comment