RDS Gateway > Update Resource authorization policies with Powershell

1.4k Views Asked by At

I wonder if it exists a powershell command to edit the RD Gateway Manager > Resource Authorization Policies as shown on below screenshot.

RDS Gateway

I would like to edit the 'Manage Local Computer Group' and add a computer in a a group I try to get information about RD CAP but i'm not sure where to go.

Thx for your help

1

There are 1 best solutions below

0
Corey On BEST ANSWER

The settings are stored in the path:
RDS:\GatewayServer\GatewayManagedComputerGroups

You can try this way to add computers to the group by using powershell:

Import-Module RemoteDesktopServices
Get-Command -Module RemoteDesktopServices
New-Item -Path RDS:\GatewayServer\GatewayManagedComputerGroups\$GroupsName\Computers -Name $computer

If you want to get more details, cd RDS:\GatewayServer\GatewayManagedComputerGroups to have a look can help you a lot.