Shutting down a computer over the LAN

3

1

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?

Black Block

Posted 2011-11-25T18:16:45.877

Reputation: 291

You can install VNC or use a Remote Administration Tool (RAT). – None – 2011-11-25T18:37:52.223

1Try shutdown -i. – RobinJ – 2011-12-09T18:40:35.860

Answers

3

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).

Cormite

Posted 2011-11-25T18:16:45.877

Reputation: 31

if there is no password what to do?? and what “some comment here” mean ??? – Black Block – 2011-12-06T20:34:45.370

"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. – Thomas Ward – 2011-12-08T00:33:28.093

1

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

enter image description here

Anonymous

Posted 2011-11-25T18:16:45.877

Reputation:

1

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.

Engels Peralta

Posted 2011-11-25T18:16:45.877

Reputation: 111

1

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

Simon Sheehan

Posted 2011-11-25T18:16:45.877

Reputation: 8 641