Shutting down a computer over the LAN

6,128

Solution 1

Another way to do it is writting this command in the Terminal.

net rpc SHUTDOWN -C “some comment here” -f -I x.x.x.x -U user_name%password (where x.x.x.x is your Windows IP).

Solution 2

On Windows, you can use the FOR command combined with shutdown.

FOR /L %i in (1,1,254) DO shutdown ''192.168.0.%i 

Where 192.168.0.%i is, fill in the IP of the machine you want to shut down. Leaving it in this form will shutdown all computers on the network.

You can download a GUI version here.

enter image description here

Solution 3

You could install UltraVNC (or enable Remote Desktop) on the Windows PC, then login and shut down the PC.

Another way would be to install the telnet server for Windows. This will allow you to telnet into the Windows machine and send a shut down command.

Solution 4

Enable RDP on Windows then use Remote Desktop Viewer (vinagre) on Ubuntu to connect to your Windows machine.

enter image description here

Share:
6,128

Related videos on Youtube

Black Block
Author by

Black Block

Updated on September 18, 2022

Comments

  • Black Block
    Black Block over 1 year

    I want a command to shut down a computer on my LAN network that is running Windows 7 and has no password set.

    Is there any way to do this?

    • RobinJ
      RobinJ over 12 years
      Try shutdown -i.
  • Black Block
    Black Block over 12 years
    if there is no password what to do?? and what “some comment here” mean ???
  • Thomas Ward
    Thomas Ward over 12 years
    "Some Comment Here" is a placeholder for you to actually specify within quotes the reason for the shutdown. In this case, if the reason was for maintenance, you could use "Shutdown for Scheduled Maintenance" or similar.