RDS网关>使用Powershell更新资源授权策略

时间:2020-05-11 08:20:35

标签: powershell remote-desktop rds

我想知道是否存在一个powershell命令来编辑 RD网关管理器>资源授权策略,如下面的屏幕截图所示。

RDS Gateway

我想编辑“管理本地计算机组”并在组中添加计算机 我尝试获取有关RD CAP的信息,但是我不确定该去哪里。

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

设置存储在路径中:
RDS:\GatewayServer\GatewayManagedComputerGroups

您可以尝试使用Powershell将计算机添加到组中的方法:

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

如果您想了解更多详细信息,cd RDS:\GatewayServer\GatewayManagedComputerGroups可以帮助您。