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 currently have a Virtual Box VM with a bridged network.

For testing purposes I have a Win7 Host & Guest. The host can see the guest and ping to it etc. But when running the command:

shutdown /m \\Virtual-PC /s /t 0

Nothing happens, can anyone tell me what I need to do so that a network computer can be remotely shutdown.

Thanks

share|improve this question
    
Have you the Admin privilege or not? –  avirk Aug 29 '11 at 2:56
add comment

2 Answers

The order of switches are strict. Try: shutdown /s /m \\Virtual-PC /t: 0

share|improve this answer
    
I will say, using my Windows XP mode VM as an example didn't work. The reason was because the computer name "is not valid or remote shutdown is not supported on the target computer." –  SgtOJ Aug 29 '11 at 3:13
    
I found the problem, your order of switches are wrong btw, the network computer should always be defined before the shutdown switch. The problem was 1. The Firewall and 2. UAC Control blocking the actions. Changes to the security policies need to be made. –  Sandeep Bansal Aug 29 '11 at 11:28
    
Okay... I always defined what is intended first, shutdown or reboot, before the computer name. Anyways, you should add your answer and select it as the correct answer. –  SgtOJ Aug 29 '11 at 13:25
    
From my experience, the order does not matter at all (except that -i, if given, must be the first). –  grawity Aug 29 '11 at 19:13
add comment

I think you should try shutdown -m \\Virtual-PC -s -t:0 which we use on Windows.

share|improve this answer
    
If it still doesn't work, it would probably be worth disabling the firewalls of both machines temporarily and trying again. –  Col Aug 29 '11 at 5:24
    
This answer is basically the same answer I posted an hour before. –  SgtOJ Aug 29 '11 at 7:15
add comment

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.