In Windows 10 when enabling RDP there will be a question on the same screen if you want to keep the machine active, to disable sleep mode. This question is gone from the GUI in Windows 11. Guess what happened, some people claimed RDP was working only sometimes on the Win1 machines. They forgot to disable sleep mode.
Please Microsoft, add is once again to the RDP enable screen as it was in in settings/system/remote desktop in Windows 10. The same for enable ping.