Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 1106

Extremely slow creating Remote Desktop Gateway RAPs and CAPs after roughly 100 of them.

$
0
0

So my problem is that we create a separate RAP for each client and we currently have over 600 RAP's now.  Using a script it takes over 30 minutes for it to create the RAP, using the RDG Manager console it takes 5 to 10 minutes.  We are trying to do this using a powershell script so that our techs can do this as well as Admins.  The techs don't have access to the MMC Console.  I have also noted that as we went past about 100 rules things started slowing down on creating the rules and as we add more it keeps getting slower.  We have 3 RDG servers and at 30 minutes plus for each server it takes quite a while to add one new client.

Is there a limit as to the the number of RAP's and CAP's that you can have?

Does anyone know of a way to speed this up? I would think that using powershell would be faster than using the console and the wizard.

Here is a snip of the script that pertains to adding a RAP.

$ResultRAP = Invoke-Command -ComputerName $Servers -ArgumentList $RapName, $RapPath, $RapDescription, $RapDescriptionPath, $GroupRDGUserFull, $GroupRDGServer -ScriptBlock {
    param($RapName, $RapPath, $RapDescription, $RapDescriptionPath, $GroupRDGUserFull, $GroupRDGServer)
    Import-Module remotedesktopservices
    New-Item -Path $RapPath -Name $RapName -UserGroups $GroupRDGUserFull -ComputerGroupType 1 -ComputerGroup $GroupRDGServer
    set-item -Path $RapDescriptionPath $RapDescription
}

Thank You to anyone that can help me out

Roy


Viewing all articles
Browse latest Browse all 1106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>