This has been a bug in Windows since 7 although not to the extent in 10 or 11. I deployed some command prompt workarounds, five, I believe, starting from the easiest to the most complicated. It's never the same one that works on my clients networks and now, in Win11, none work.
I just had a thought...I wonder if this doesn't have to do with Bitlocker? Someone out there might want to turn Bitlocker off on all PC's on the network to see if that has something to do with it.
The other issue I want to bring up is that I DID have success on a client's simple network after hours of trying workarounds. Then, their router went bad, they replaced it, and now the same thing happens. They called me in and naturally, when they told me this, I started looking into router settings and all were where they should be. Nothing was blocking, no firewall, all permissions where they should be. This is one client I'm stuck with this issues. I'm thankful they're so understanding.
I've setup a network with Linux and don't have this issue whatsoever. This is definitely a Windows bug....just one of many.