question

ShawnAllin-5701 avatar image
0 Votes"
ShawnAllin-5701 asked PeterThaus-6613 answered

Psexec not able to connect to Window 11 computer

System: Windows 11 Enterprise (x64) Version 21H2 (build 22000.613)
PSExec version: 2.34

I'm trying to use PSExec to a Windows 11 computer. I get this error:

C:\UTIL\pstools>psexec64 \\kgnwo21024 cmd

PsExec v2.34 - Execute processes remotely
Copyright (C) 2001-2021 Mark Russinovich
Sysinternals - www.sysinternals.com

Couldn't access kgnwo21024:
The network name cannot be found.

Make sure that the default admin$ share is enabled on kgnwo21024.


I can ping the computer. I have Network discovery and File and printer sharing turned on.

It works fine accessing Windows 10 and earlier systems.

Any ideas?

Thanks, Shawn

windows-sysinternals-pstools
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PeterThaus-6613 avatar image
0 Votes"
PeterThaus-6613 answered

It is an firewall problem. In Windows 10 there are rules for "remote support (DCOM incoming)" and "remote support (PNRP incoming)" (may be the name is not correct, I only have it in German here. So this is my own translation.). We had to activate these rules for Windows 11 and PSExec worked again.
Another option is the entry for "Remote Service (RPC)". This is deactivated for Windows 10 and 11. But if it is activated, PSExec connects much faster. I just don't know if this offers security problems.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.