Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Remote shutdown Windows 10

Posted on 2016-11-17
14
Medium Priority
?
40 Views
Last Modified: 2016-11-22
I have 2 Windows 10 PCs and I want to shutdown one from the other. I have tried the command print methods but keep getting rejected by remote PC
0
Comment
Question by:mortonkr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 59

Expert Comment

by:Cliff Galiher
ID: 41892106
All windows remote shutdown methods do the same thing. They use WMI under the covers. So whether the old command-prompt, PowerShell, or GUI, all send the exact same network packets. If it is failing then no other method will suddenly work. You have to solve the underlying problem. DNS, firewall blocking WMI, or account permissions.
0
 
LVL 98

Expert Comment

by:John Hurst
ID: 41892179
When you Shutdown /r (/f) /m  \\computername from an admin command prompt, what error do you get?
0
 

Author Comment

by:mortonkr
ID: 41892281
I get Access is denied.(5)
I have the the same user on both PC's and that user is member of the admin group
It worked once only and each time after that i get this error!
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 98

Expert Comment

by:John Hurst
ID: 41892285
That error means a basic connection issue. The main system is not even seeing the other device. Make sure Network Discovery and File Print sharing are both ON, Home Group is OFF, and the firewalls are set to allow the other devices
0
 

Author Comment

by:mortonkr
ID: 41892293
I can ping the other pc name. F&P sharing is enabled, not sure how to disable home groups. I just set both systems to use users rather than homegroups
0
 
LVL 98

Expert Comment

by:John Hurst
ID: 41892297
The last change should disable Home Group. Is Network Discovery ON? And check Firewall Settings.

How are you handling Remote? Directly across the Internet or via VPN?
0
 

Author Comment

by:mortonkr
ID: 41892300
both pc's are on a LAN.
What firewall setting should I look for?
Its weird that it allowed me to do it once and not again!
0
 
LVL 98

Expert Comment

by:John Hurst
ID: 41892313
If the LAN's are connected over the Internet you need to permit the external addresses
0
 

Author Comment

by:mortonkr
ID: 41892314
They are on a local lan. not internet involved.
0
 
LVL 98

Expert Comment

by:John Hurst
ID: 41892321
Strange. Try from another machine on the same LAN
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 41892334
Temporarily - to test if it's a firewall issue, disable the firewall on the target system.

Then, when specifying the shutdown, you must establish or have a pre-established session to the machine, I believe with admin rights.

Try the following sequence of commands:
NET USE \\remotePCNameOrIP /user:remotePCNameOrIP\localAccountWithAdminRights *
<you'll be prompted for that account's password; enter it>
SHUTDOWN -t 1 /m \\remotePCNameOrIP

(-t 1 has the same effect as -f but should be faster - it's the time to wait before shutdown in seconds)
0
 

Accepted Solution

by:
mortonkr earned 0 total points
ID: 41892342
I found there is a registry edit that needs to occur. This fixed it. See file attached.
Registry Edit
0
 
LVL 56

Expert Comment

by:McKnife
ID: 41892493
Scrolling through the comments I expected that solution to come up (even although you said it worked without once ;-) ).
These are local users. Local admin users' tokens get filtered, that's how UAC works, even when working from remote.
0
 

Author Closing Comment

by:mortonkr
ID: 41897242
I found a solution that worked
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question