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 🙁 . 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.
You must be logged in to reply to this topic.