Remote Shutdown

neb

New member
Member
Local time
10:07 PM
Messages
33
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 Computer

OS
Windows 7 Ultimate 32-bit
does the shutdown -i work when you enter the machine name and credentials?

your username will have to be: remotemachine\username
 

My Computer

OS
7 Pro
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 Computer

Computer Manufacturer/Model Number
Dell Optiplex
OS
Windows 7 Professional 64 bit
Memory
4096
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 Computer

OS
Windows 7 Ultimate 32-bit
Gpedit startup/shutdown script

I have 2 scripts running through:
GpEdit.msc
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 Computer

OS
Windows 7 Ultimate 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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP CQ3270D
OS
Windows 7 Home Premium 32 bit
CPU
Intel Pentium G6950
Motherboard
HP
Memory
2G
Graphics Card(s)
on-board
Hard Drives
Hitachi HDT721032sla389,
ST3500630AS
Antivirus
Symantec
Browser
IE 11.0.22
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
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:
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
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:
Code:
psservice \\computername -u [I]username[/I] -p [I]password[/I] start RemoteRegistry

Once you gain access:
Code:
psshutdown \\computername -u username -p password

Not sure if you need to -u -p each and every time!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
Back
Top