Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from askubuntu.com Nov 25 '11 at 23:54

This question came from our site for Ubuntu users and developers.

    
You can install VNC or use a Remote Administration Tool (RAT). –  Anonymous Nov 25 '11 at 18:37
1  
Try shutdown -i. –  RobinJ Dec 9 '11 at 18:40

4 Answers 4

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

enter image description here

share|improve this answer

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

share|improve this answer
    
if there is no password what to do?? and what “some comment here” mean ??? –  Naruto Dec 6 '11 at 20:34
    
"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 W. Dec 8 '11 at 0:33

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.