remove a group from RDP-TCP with powershell

Dear Community

I Am trying to remove a group from RDP-TCP with powershell , using below command i can list out the permission . If do get-member there is only addccount method available , removeaccount is not there :frowning: . I need to remove remote desktop users group … is there a way ? Thanks in advance

get-WmiObject -Namespace "root/cimv2/terminalservices" -Class win32_tspermissionssetting

Not via WMI. If Microsoft hasn’t provided that ability then you’re kind of stuck.