This article will explain how to use the Shutdown command to turn off a computer remotely as well as how to use the WakeOnLan standard to wake or boot a PC.
How to remotely shutdown a computer on a LAN?
In order to control a computer remotely, please note that you must be connected to the same local network as the target PC. You must also know the username and password required for login.
- The first step is to open TCP port 445 on the target computer. To do this, open your Start menu and then go to Settings > Control Panel > Security Center.
- Open Windows Firewall and click the Exceptions tab.
- Select the line that reads File Sharing and printers and press OK. If this line is missing, click Add Port and choose TCP port 445 .
- Next, head to Start > Settings > Control Panel > System. Select the Remote tab and check the option that reads Allow users to connect remotely to this computer. It is now time to open the command prompt.
- Head to Start/Run or use the keyboard shortcut Windows + R. Next, type cmd and then hit OK. This will open your command prompt.
- To obtain the necessary rights to run a shutdown command on the target machine, you must first run the net use command. Use the Windows + R keyboard shortcut and then enter net use \\ip_address_of_target_machine. Enter an administrator username and password for the target computer to connect to the target PC.
- Once connected to the target PC, we can run the shutdown command. An example of the command is given below, whereby instructions are given for the target computer to close all active applications and shutdown after 30 seconds of inactivity. Please note that you can substitute any of the variables according to your network or PC specifics:
shutdown -s -f -t 30 - m \\192.168.3.4
-s: Shutdown the PC
-f: Force active 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 any additional information about this command, type shutdown /?.
How to use the WakeOnLAN command?
WakeOnLAN, as the name already suggests, is a tool that can boot or wake a computer by sending a Magic Packet to the network adapter of the target computer. It is important to note that not all network cards and BIOS are compatible with, or support, the use of Magic Packet.
In order to use the WakeOnLAN command, you must be connected to the same local area network (LAN) as the target computer. Knowledge of the physical location (MAC) and IP address of the target computer is also required.
How to retrieve IP and MAC address?
- The first step is to retrieve the IP address and MAC address of the target computer.
- To do this, go to Start/Run or use the keyboard shortcutWindows + R and type cmd > OK.
- The command prompt will open. Now type ipconfig /all:

- Copy the IP and physical (MAC) address of the target PC.
How to perform the compatibility checks?
It's now time to check if your network card is compatible with Magic Packets.
- To do this, right-click on My Computer and click Manage.
- Next, go to Device Manager/Network Cards and do a right-click on your Network Card.
- Then click Properties.
Do a search for the following words and verify that all options that relate to them are currently active: Magic Packet, Wake On Magic Packet, Wake On Lan, or Wake. If none of these words appear, you may be required to update the drivers for your Network Card.
- To see if your computer is BIOS compatible, enter the BIOS when you start the computer. You can do this by pressing ESC, F2, F5, F12 or DEL (depending on your system).
- Once in the BIOS, go Power Options and enable Wake-On-LAN, or any similar option:

How to open port 8900?
You can open Port 8900 in the same way as you would Port 445.
How to use Wake On LAN (WOL)?
Start by downloading the Symantec WOL tool on the source computer. Launch the tool and then fill in the empty fields using 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
Once the packet has been received, the target computer will boot.
How to boot your PC from the Internet?
In theory, it is possible to boot a remote PC from the internet. You will need configure your router to redirect a UDP packet to a specific port on all the network computers.
By sending the magic packets to your public IP address (on the correct port), you will be able to individually boot computers on your local network.
How to boot your PC using your phone?
If you want to wake up your computer while you are not at home using your phone, you will need an external PSTN modem (using the RS 232 serial port). Connect the modem to your computer and enable the option in your BIOS. From there, you can connect the modem to IP phone line from your router.
Windows 10
- Wake on lan command
- Wake on lan cmd
- How to turn on a computer remotely cmd
- Get a computer name from IP address in a LAN: command line > Guide
- Counter-Strike LAN: party, game, multiplayer, server > Guide
- Command and conquer generals zero hour lan fix [solved] > Forum - Network
- LAN settings on Windows 10: check and configure > Guide
- 2 lan connection [solved] > Forum - Network
- Change your computer name on Windows 10: via cmd, settings
- How to turn off system sounds on Windows 10
- How to fix F1 error at Windows startup?
- PC restarting on its own: Windows 10, 11
- Where apps are stored on Windows 10?
- Reset Windows password: via cmd, without logging in
- Show hidden files on Windows 10: via cmd, shortcut
- How to change Windows 10's default photo viewer?
- Permanently disable Windows Defender in Windows 10
- How to disable volume shadow copy?
- Update to Windows 10 for free
- How to install the latest Windows 10 update?
- Clear the Windows update cache: via cmd, Notepad
- How to clear your Bluetooth sync history in Windows 10?
- How to adjust default virtual memory size on Windows 10?
- Delete Windows.old from Windows 10: via CCleaner, Start menu
- How to increase your PC hard disk space?
- Windows calendar show week number
- Multi-touch gestures on Windows 10: enable and disable
- Install RSync under Windows: cygwin, powershell
- Command prompt: Windows 10, commands, shortcut
- How to empty the Recycle bin on C drive in Windows 10?
- Speed up Windows 10 computer performance
- Fix corrupted driver: Code 39, Windows 10
- Disable Ctfmon.exe at startup on Windows 10
- Play music on computer startup: Windows 10, Windows 7
- Identify your motherboard on Windows 10: via cmd, DirectX
- Reinstall Windows 10 without losing data: via USB or ISO
- How to right click on touch screen: Windows 10, monitor
- Mount ISO files: Windows 10
- Save documents as PDF: on Windows 10, 8 and 7
- How to customize Mail app settings on Windows 10
- Windows 10 Quick Access menu: customize and edit
- Windows 10 desktop keyboard shortcuts: the ultimate guide
- Change Windows 10 settings: language and region
- Asus smart gesture not working: after Windows 10 update
- How to remove password control at login on Windows 10?
- How to change the installation location on Windows 7, 10, 11
- How to activate a pirated version of Windows?
- God Mode folder on Windows 10: features
- Pagefile.sys file: purpose, size, location
- Fix touchpad on Windows 10: disabled, incompatible driver
- Disable background apps: on Windows 10, 7, and 8
- How to create a Windows 10 bootable USB or installation DVD?
- How to open Internet Explorer in Windows 10 via cmd?
- How to display Windows 10 update in Control Panel?
- Delete file in Windows: CMD, 10
- How to send email attachments on Windows 10?
- How to open the Windows 10 registry via cmd
- How to set up the phone companion app in Windows 10?
- Customize the Send To menu on Windows 10: add items
- How to turn off Taskbar Tidbits in Windows 10
- Customize the mouse pointer in Windows 8, 10
- Open the Device Manager on Windows 10: via cmd, run, shortcut
- Add a printer in Windows 8.1, 10
- How to switch graphics processor on Windows 10
- How to enable classic notifications in Windows 10
- Take photos with your webcam on Windows 7, 10
- Desktop icons missing Windows: 10, 7, after update
- How to create a desktop shortcut for Cortana: WIndows 10
- How to boot in safe mode in Windows 8, 10?
- How to hide desktop icons on Windows 10?
- Send text messages from Windows 10 via Your Phone app
- Windows 10: Home Vs Pro
- Pin Run to the Windows Start menu: on Windows 7/8/10
- How to change Cortana search engine: to Google
- Best Windows 10 browser: 2022, for privacy
- USB not recognized: Windows 10 fix
- How to uninstall Microsoft Edge on Windows 10
- How to use Cortana in Windows 10
- How to record screen: Windows 11, 10
- Speed up PC startup on Windows 7, 8, 10