Psexec not able to connect to Window 11 computer

Shawn Allin 6 Reputation points

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 -

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

Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,126 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Peter Thaus 6 Reputation points

    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.

    1 person found this answer helpful.