Link to home
Start Free TrialLog in
Avatar of JamesNT
JamesNT

asked on

Disable Remote Desktop Gateway RD CAP and RD RAP via PowerShell

Our Remote Desktop Gateway is Windows Server 2016.

I need to be able to disable a RD CAP and RD RAP via powershell.  We are going to set up a scheduled task to run the script to disable certain RD CAP and RD RAP rules.  So I need to be able to disable the rules by name.

Ideas?

James
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JamesNT
JamesNT

ASKER

Thank you for the assistance.  That put me on the right path.

Import-Module RemoteDesktopServices
Push-Location RDS:\GatewayServer\CAP\myrule
Set-Item myrule 0

JamesNT