is there a command powershell command that tells whether RDP is enabled, and or being used etc?
07:44 20 Sep 2022

like a status/info command? something like ipconfig but RDP related. The closest I got to is this

Get-Service -Name "Remote Desktop Services", "Remote Desktop Configuration", "Remote Desktop Services UserMode Port Redirector"

but doesnt this just say whether there is an active RDP session running?

windows powershell shell system-administration