Author Posts

August 23, 2017 at 7:17 am

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 🙁 . I need to remove remote desktop users group .. is there a way ? Thanks in advance

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

August 23, 2017 at 1:01 pm

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