Trying to shutdown network computer

2

0

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

Sandeep Bansal

Posted 2011-08-29T02:31:25.380

Reputation: 6 168

Have you the Admin privilege or not? – avirk – 2011-08-29T02:56:14.930

Answers

1

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

SgtOJ

Posted 2011-08-29T02:31:25.380

Reputation: 6 843

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 – 2011-08-29T03:13:39.233

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 – 2011-08-29T11:28:35.343

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 – 2011-08-29T13:25:21.980

From my experience, the order does not matter at all (except that -i, if given, must be the first). – user1686 – 2011-08-29T19:13:13.793

1

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

avirk

Posted 2011-08-29T02:31:25.380

Reputation: 15 151

If it still doesn't work, it would probably be worth disabling the firewalls of both machines temporarily and trying again. – Col – 2011-08-29T05:24:54.813

This answer is basically the same answer I posted an hour before. – SgtOJ – 2011-08-29T07:15:29.223