Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Remote Shutdown

28 Dec 2010   #1

Windows 7 Ultimate 32-bit
Remote Shutdown

I tried to remote shutdown an XP SP3 workstation from a windows 7 workstation.
I used the following command:

"shutdown /m \\huttesrv001.hutte.local /s /f"

but I always get an error: "huttesrv001.hutte.local: Access is denied.(5)"

where huttesrv001.hutte.local is the name of the remote workstation I want to shutdown. (I used the IP address instead of the name with same results).

my logon account (name and password) is the same on both workstations)

I stopped the Firewall settings on the XP workstation but to no avail.

When I make a Remote Desktop Connection to the XP workstation I can shutdown it from there.

Has anyone an idea how I can force a remote shutdown?

My System SpecsSystem Spec
28 Dec 2010   #2


does the shutdown -i work when you enter the machine name and credentials?

your username will have to be: remotemachine\username
My System SpecsSystem Spec
28 Dec 2010   #3

Windows 7 Professional 64 bit

From the cobwebs of my brain:

Establish a connection first so that you are authenticated, such as mapping a drive. Windows is supposed to remember that association and use it when you run the shutdown command.

Again, that's from the dusty old cobwebs of my memory. Hope that's right.
My System SpecsSystem Spec

29 Dec 2010   #4

Windows 7 Ultimate 32-bit

Much appreciated both for the quick answer.
A very strange thing happened this morning:when I booted my PC: everything worked as it should be: I can remotely startup and shutdown my remote XP workstation!
glad of fcourse but now I'll never know why it didn't work yesterday.
nevertheless, I'll keep your replies in mind.
I put the 2 commands (startup and shutdown) in Gpedit.msc -Computer Configuration - Windows Settings - Scripts(Startup/Shutdown) so the remote PC starts up and shuts down with my Windows 7 workstation.
My System SpecsSystem Spec
30 Dec 2010   #5

Windows 7 Ultimate 32-bit
Gpedit startup/shutdown script

I have 2 scripts running through:
Computer Configuration
Windows Settings
Scripts (Startup/shutdown)

the startup script starts a remote PC (=OK)
the shutdown script shuts down the remote PC (= NOT OK)

the shutdown script works well if I execute it manually.
is it possible that when the script runs during shutdown the network is already unavailable? And how can I solve this problem.
My System SpecsSystem Spec
03 Sep 2015   #6

Windows 7 Home Premium 32 bit

It doesn't seem to work in Windows Home Premium. There is no gpedit.msc. I can't get the win7 home premium to remotely shutdown. Haven't tried the remote desktop option, I really want to run dos shutdown command. If you don't remember what dos is, it's the real man's operating system that was here before the himem application called windows came along.
My System SpecsSystem Spec
03 Sep 2015   #7

Windows 7 Pro 64 bit

Remote Desktop will shut down a computer but it must be running either Professional, Ultimate, or Enterprise edition. Home editions are not supported. Almost any computer can initiate the shutdown.
My System SpecsSystem Spec
03 Sep 2015   #8

Windows 7 Ultimate x64 SP1

I can shutdown a Virtual Machine (Windows 7 Home Premium) with PSTools of Sysinternals Suite.
SysInternals Pro: Using PsTools to Control Other PCs from the Command Line

You will need to (on the machine you want to remotely control):
To tweak UAC to enable PsTools to run youíll want to open up the Registry Editor and navigate to the following key:
Once you are there, create a new 32-bit DWORD on the right-hand side, give it the name LocalAccountTokenFilterPolicy and the value of 1. You donít have to restart the computer to make the setting take effect.
Then enable Remote Registry on remote machine if needed:
psservice \\computername -u username -p password start RemoteRegistry
Once you gain access:
psshutdown \\computername -u username -p password
Not sure if you need to -u -p each and every time!
My System SpecsSystem Spec

 Remote Shutdown

Thread Tools

Similar help and support threads
Thread Forum
Is remote shutdown and turn on possible using W7's Remote Desktop?
If it can't be done, what are the alternatives? Thank you. Edit: I just read how to shutdown with Remote Desktop and I'm going to try that out. So, the only remaining questions are how can I remotely turn on a workstation on a lan? Can I do it at a pre-determined time? What about remotely...
Network & Sharing
Remote shutdown curse!
This problem is driving me kabonkers. I have searched in google but it has just taken me around in circles. I have 3 computers in my house. My laptop is running Windows 7 Pro. My desktop is running Windows Vista Home and my other laptop is running Windows 7 Home. I've tried to remote shutdown one...
Network & Sharing
shutdown remote pc on LAN
Greetings everyone, it's me again - this time with the second half of the Wake on LAN thread. I want to powerdown a remote PC simply by double clicking a desktop shortcut on my local machine, and it should be possible using the shutdown command. I have tried creating a new shortcut with...
Network & Sharing
Set permission for remote shutdown
I have a Home LAN and I'm trying to use command "shutdown" for shutdown machines remotely but I get "Acces denied". shutdown -r -m \\MACHINE1 I've tried to use PsTools and partialy I've achieved the goal. I've created a batch file on each machine shutdown -r . I've shared folder over network and...
Network & Sharing
Remote shutdown with UAC on?
Hi there i hope someone can help me with this its been driving me mad and googles taking me round in circles :( I need to shutdown a server on the same network using the shutdown command like we used to when it was xp (now w7 ultimate 64bit). After spending days on this now trying various...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 09:58.
Twitter Facebook Google+