Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to shutdown or restart network computers using batch files

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-11-2010
Member
 
Join Date: Oct 2010
Posts: 177
How to shutdown or restart network computers using batch files
  

I am using the Windows Vista Desktop PC and Windows 7 PC at Workgroup. There are number of computer and are connected using LAN and configured with static IP address. Now my requirement is I want to do several task using central workstation. The Main workstation is also connected to the same Workgroup. The tasks which I want to perform are:
  • Wake the systems if they are in sleep mode
  • Shutdown or restart the systems
I want to use a batch file because there are many workstations. Any other similar alternative way is also helpful. Can you suggest some of the tricks or documentation to perform this operation? Can you give me the list of commands for this if they are really available?

Reply With Quote
  #2  
Old 25-11-2010
Member
 
Join Date: Feb 2010
Posts: 524
re: How to shutdown or restart network computers using batch files

What version or edition of OS you are currently using in your workgroup computers? If you are using Home edition o vista or 7 then this feature or functionality may not be available. In this case you will need to change the OS first. There are some kinds of application available on the internet which will enable you to perform some remote task. But I am sorry to say this that I donít have any idea about the batch file or command for Windows Computers.
Reply With Quote
  #3  
Old 25-11-2010
Member
 
Join Date: Feb 2010
Posts: 538
re: How to shutdown or restart network computers using batch files

Of course, you can wake up, shutdown or restart the systems which are connected together to same network. The main thing you must notice that the Network Cards in the entire PC's in workgroup should support 'Wake on LANí feature. The another thing you will also need is a special kind of software that may allow you to transmit ĎMagic Packetsí which will wake up the PCs. I think this is an easy method to maintain and open/close network using single computer or workstation, instead of manually starting every single system.
Reply With Quote
  #4  
Old 25-11-2010
Member
 
Join Date: Feb 2010
Posts: 488
re: How to shutdown or restart network computers using batch files

Yes I heard about those batch file before which will enables you to perform some LAN based operations. But to achieve by using these file you will have to upgrade Vista or windows 7 to latest edition other than Home edition. Otherwise you will not be able to perform the remote shutdown functionality. Just in case you can open command line and type shutdown –I and press Enter. This command will pop up a Graphical user interface for shutting down the PC’s remotely. I am not sure whether this command will support on all computers or not. But you can try in your workstation.

Last edited by Saura : 25-11-2010 at 12:09 PM.
Reply With Quote
  #5  
Old 25-11-2010
Member
 
Join Date: Feb 2010
Posts: 471
re: How to shutdown or restart network computers using batch files

Did you try the shutdown.exe command? Many windows OS support this command to remotely shutdown or restart the PC. Otherwise open the command prompt and type shutdown /? To see the list of switches available. Here are a couple of the command switches and they perform several actions like
-l: ===Logs off the computer
-s: ===Shuts down the computer
-r: ===Restarts the computer
-m \\computername: ===remote shutdown of a computer
-f: ====Forces programs to close immediately
Reply With Quote
  #6  
Old 26-11-2010
Member
 
Join Date: Feb 2010
Posts: 669
re: How to shutdown or restart network computers using batch files

There are some shutdown switches which will perform several actions using only command line.
  • Shutdown Local Machine === shutdown -s
  • Specify Time=== shutdown -s -t 60
  • Give Us Some Info! ===== shutdown -s -t 120 -c "You better finish, because I will shut your system down!"
  • Shutdown a Remote Computer ===== shutdown -s -m \\desktop -t 45
  • Cancel Shutdown ====shutdown -a
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to shutdown or restart network computers using batch files"
Thread Thread Starter Forum Replies Last Post
Shutdown, Restart, or Log Off your computer using VB.Net Praetor Software Development 5 11-02-2014 05:44 PM
Automatic Restart After Shutdown Gregoryl Windows XP Support 10 12-12-2011 09:46 AM
Unable to share files on network computers, but internet sharing works Gopooo Networking & Security 10 16-09-2011 10:39 PM
Shutdown window after running batch file Jaiwanti Operating Systems 4 13-12-2010 05:25 PM
How to shut down/restart the computer with a batch file Bearer Software Development 4 27-03-2010 08:02 PM


All times are GMT +5.5. The time now is 11:22 PM.