Mau video anda ditayangkan disini?? Chat with Us!!!

Monday, December 16, 2013

Shutdown/Wake Up Lan - Turn your PC On/Off


Shutdown/Wake Up Lan - Turn your PC On/Off

Shutting down the computer is an important step in its day-to-day functioning. Sometimes it may not be possible to physically shut down a computer. In such a scenario it is possible to shut down the computer remotely, provided it is connected with another computer over a network. The other two basic pre-requisites are to know the username and password, along with the firewall settings. One way of doing this is using the command prompt to input the shutdown command. The other option is to use software like WakeOnLan. This process works with Windows based systems.
 

With the Shutdown command

Prerequisites

For this method, you must share the same local area network (LAN) as the target computer. You also need to know the user name and password of the target computer.

Port 445

Find out if TCP port 445 is open in the target computer's Windows firewall:
  • Go to Start/Settings/Control Panel/Security Center
  • Then click on Windows Firewall and then the Exceptions tab
  • Normally there a line "File Sharing and printers", select it and press OK
  • If you do not see the line, click on Add Port and choose TCP port 445
  • Then go to Start/Settings/Control Panel/System and, in the Remote tab, check Allow users to connect remotely to this computer

Command line

Net use command

To obtain the necessary rights to run a shutdown command on the target machine, you must first run the net use command. Remember to note down the address of the target machine, it will be needed for the command.
  • Go to Start/Run or use the keyboard shortcut: Windows + R
  • Type cmd and hit OK
  • A DOS window (command prompt) will appear - enter the following command: net use \\ip_target_machine

Enter an administrator username/password for the target computer

Shutdown command

From now on we will implement the shutdown command.

The command is as follows:

shutdown -s -f -t 30 - m \\192.168.3.4
  • -s: Turns the computer off. (Required)
  • -f: Force running applications to close without warning.
  • -t xx: Set a countdown in seconds
  • -m \\xxx.xxx.xxx.xxx : the IP address of the target computer.


The GUI is available by typing: shutdown -i
  • For help on this command, type: shutdown /?
  • Software for this purpose can be found here: web
  • In our example, the target computer will receive instructions to shutdown in a 30 seconds delay

Using WakeOnLAN

WakeOnLan, as the name suggests, is a tool that can turn a computer on remotely over the network by sending a magic packet to the network adapter.
  • Warning: Not all network cards and BIOS are compatible or support the use of Magic Packet.

Prerequisites

For this method you need to share the same local area network (LAN) that the target computer. You also need to know the Physical Address (MAC) and the IP address of the target computer.

MAC & IP

First, you must retrieve the IP address and MAC address of the target computer:
  • Go to Start/Run or use the keyboard shortcut: Windows + R
  • Type cmd and hit OK
  • A DOS window (command prompt) will appear, enter the following command: ipconfig /all
  • In Red: The MAC address
  • Green: The IP address

Network Card

  • To check if your network card is compatible, follow these steps:
  • Right click on My Computer and click Manage
  • Go to Device Manager/Network Cards
  • Right click on your Network Card then Properties
  • Search for the following the words: "Magic Packet", "Wake On Magic Packet", "Wake On Lan" or "Wake" - verify that all options related to these words are being activated
  • If you found nothing, you may be required to update the drivers of your NIC
  • Restart the target computer

BIOS

  • To check if your BIOS is compatible, follow these steps:
  • Enter the BIOS when you start the computer by pressing ESC, F2, F5, F12 or DEL, depending on your system,
  • Once in the BIOS, go into options (POWER) and enable Wake-On-LAN, or any similar option.

Firewall

  • Open port 8900 in the same way as port 445

Wake On Lan (WOL)

  • Start by downloading the tool on the source computer
  • It is available here
    • Here's how it looks:
  • Complete the fields from the information gathered above:
    • Mac Address: MAC address (the target machine)
    • Internet Address: Local IP address (target machine)
    • Subnet Mask: 255.255.255.255
    • Send Options: Local Subnet
    • Remote Port Number: 8900
  • Click the button: Wake Me Up



Note: Once the packet has been received, the target computer should turn on.

credits to: http://en.kioskea.net/faq/9200-shutdown-wake-up-lan-turn-your-pc-on-off

We are Live for Sharing, kunjungi juga www.sewaalatbayijambi.com