Issue with SHUTDOWN
Solved
patrice86
Posted messages
1520
Status
Membre
-
dipisoft -
dipisoft -
Hello,
I have 3 PCs at home (2 connected to the box via Wi-Fi and 1 via Ethernet).
I would like to be able to perform a shutdown from one of the Wi-Fi PCs to the Ethernet PC.
I type the command shutdown -s -f -m \\ xxx.xxx.xxx.xxx
I get an error message => xxx.xxx.xxx.xxx: Access Denied. (5)
I have enabled remote connections on the target PC.
All PCs are running Windows 7.
Any solution please?
Thank you =)
Configuration: NZXT Lexa S
Microsoft Seven Premium
Intel core I5 2400
Asus P8P67 LE Rev 3.0 (B3 Revision)
Arctic Cooling MX-2 (4 g)
Sapphire Radeon HD 6850 1Go
G.Skill Extreme3 Kit 2 x 2 Go PC12800 Ripjaws X CAS8
Seagate Barracuda SATA Revision 3.0 - 1 To
Antec HCG - 520W
Cooler Master Hyper 212 Plus
17" Screen
Logitech 5.1 Speakers
Toshiba A500-18T Laptop
Toshiba A660-12E Laptop
I have 3 PCs at home (2 connected to the box via Wi-Fi and 1 via Ethernet).
I would like to be able to perform a shutdown from one of the Wi-Fi PCs to the Ethernet PC.
I type the command shutdown -s -f -m \\ xxx.xxx.xxx.xxx
I get an error message => xxx.xxx.xxx.xxx: Access Denied. (5)
I have enabled remote connections on the target PC.
All PCs are running Windows 7.
Any solution please?
Thank you =)
Configuration: NZXT Lexa S
Microsoft Seven Premium
Intel core I5 2400
Asus P8P67 LE Rev 3.0 (B3 Revision)
Arctic Cooling MX-2 (4 g)
Sapphire Radeon HD 6850 1Go
G.Skill Extreme3 Kit 2 x 2 Go PC12800 Ripjaws X CAS8
Seagate Barracuda SATA Revision 3.0 - 1 To
Antec HCG - 520W
Cooler Master Hyper 212 Plus
17" Screen
Logitech 5.1 Speakers
Toshiba A500-18T Laptop
Toshiba A660-12E Laptop
6 réponses
Using a Net use to log in to the remote machine?
You must have an Admin account and a Password on the Target PC
net use \\IP_Target_PC /USER:login password
shutdown -s -m \\IP_Target_PC
A little batch script for those interested:
You must have an Admin account and a Password on the Target PC
net use \\IP_Target_PC /USER:login password
shutdown -s -m \\IP_Target_PC
A little batch script for those interested:
@echo off Title Shutdown Local :start echo. set /p dest="Recipient? " echo. set /p login="Username? " echo. set /p pwd="Password? " echo. set /p rs="Reboot or Shutdown? " rem Type R or S here echo. set /p time="Delay? " rem Delay in seconds before shutdown echo. echo =========================================================================== echo. net use \\%dest% /USER:%login% %pwd% echo =========================================================================== shutdown -%rs% -t %time% -m \\%dest% goto start
However, what you can do is install an SSH server on each PC to be turned off, then you will need to connect to it using an SSH client like PuTTY for example, and then all you have to do is type the shutdown command to turn off the machine.
Here is a free SSH server:
https://www.synergeek.fr/freesshd-un-serveur-ssh-telnet-gratuit-pour-windows/
Here is the Putty client:
https://www.commentcamarche.net/telecharger/web-internet/18613-putty/
Here is a free SSH server:
https://www.synergeek.fr/freesshd-un-serveur-ssh-telnet-gratuit-pour-windows/
Here is the Putty client:
https://www.commentcamarche.net/telecharger/web-internet/18613-putty/
hi
you must first log in with an existing account on the PC to be shut down
in the Start menu \\ip of the PC to be shut down and then the shutdown command
otherwise use WakeOnLan https://www.dipisoft.com/articles.php?lng=en&pg=90
This allows you in Options === Configuration === Authentication === to specify an account from the computer to be shut down that has the rights for this operation
http://tinypic.com/images/goodbye.jpg
you must first log in with an existing account on the PC to be shut down
in the Start menu \\ip of the PC to be shut down and then the shutdown command
otherwise use WakeOnLan https://www.dipisoft.com/articles.php?lng=en&pg=90
This allows you in Options === Configuration === Authentication === to specify an account from the computer to be shut down that has the rights for this operation
http://tinypic.com/images/goodbye.jpg
Solution found! (FINALLY)
With the WakeOnLan software
Since the target PC was in a WORKGROUP, I had to create a KLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system, edit (or create) the value LocalAccountTokenFilterPolicy (as DWORD) and set its data to 1. Then reboot.
source: https://www.dipisoft.com/faq.php?lng=fr
Now I can remotely shut down the PC with the software.
Thanks to Kaumune for recommending it to me.
Thanks to Mael for his bat (which certainly works but not for me due to misconfiguration).
And thanks to the others for their help.
Closed
With the WakeOnLan software
Since the target PC was in a WORKGROUP, I had to create a KLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system, edit (or create) the value LocalAccountTokenFilterPolicy (as DWORD) and set its data to 1. Then reboot.
source: https://www.dipisoft.com/faq.php?lng=fr
Now I can remotely shut down the PC with the software.
Thanks to Kaumune for recommending it to me.
Thanks to Mael for his bat (which certainly works but not for me due to misconfiguration).
And thanks to the others for their help.
Closed
Unfortunately, this is the premium version.
I have seen that because of this, we cannot modify the strategies of the groups.
I have seen that because of this, we cannot modify the strategies of the groups.
So it's impossible to shut down with this version of Win7?
The idea is that I would like to be able to turn off my son's computer from mine.
As always, when it's time for bed, it stops working at a certain age...
So how can I turn it off other than with a shutdown and still remotely from another computer?
The idea is that I would like to be able to turn off my son's computer from mine.
As always, when it's time for bed, it stops working at a certain age...
So how can I turn it off other than with a shutdown and still remotely from another computer?
It's a bit of a mess in the conversation here.
So, I've just set a password on the target PC session (which is administrator).
Kaumune's Solution (WakeOnLan): By modifying the authentication with the password, still the same error.
"The remote machine rejected the request..."
Mael's Solution (CMD): I am indeed connected to the machine. Then the cursor goes back to a new line and the shutdown doesn't work.
So, I've just set a password on the target PC session (which is administrator).
Kaumune's Solution (WakeOnLan): By modifying the authentication with the password, still the same error.
"The remote machine rejected the request..."
Mael's Solution (CMD): I am indeed connected to the machine. Then the cursor goes back to a new line and the shutdown doesn't work.
net use \\192.168.1.26 /USER:Famille mon_mot_de_passe
I get the response: "the command completed successfully"
I return to a new command line and shutdown still doesn't work.
Great, but that doesn't solve the issue of the empty password not being accepted by default in Windows
Well done and thank you for the batch
I don't understand why it's complicated to create a fake admin account with a password.
Patrice86, aren't you the administrator of the workstation?
I have an error message
192.168.1.26: Access denied (5)