Install RDS when logged in user has different domain than the PSM server

Install RDS when logged in user has different domain than the PSM server

91
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:04 PM


Objective


*** Not Relevant from version 13.0+, the fix is already included in the version. ***
 

During RDS role deployment, the installation uses the logged in users domain as a suffix when sending the powershell command to deploy RDS, this can fail due to couple of reasons:

1. Machine has a "Primary DNS Suffix"

image.png
2. The logged-in user is coming from a different domain with a trust between them.

In both cases the RDS stage will fail with the following:

"Failed to install RDS Connection-Broker rule. Exception: Validation failed for the "RD Connection Broker" parameter."

image.png



Environment


11.7;12.0;12.1;12.2;12.7 Privilege Cloud PSM;Privileged Session Management (PSM)

Procedure


*** This solution can also apply to on-prem but is meant for Privilege Cloud Customers, as the solution is linked via a prerequisite script which leads to this article and the steps are proactive instead of retroactive like in on-prem.

 

1. Navigate to the PSM installation package folder which you were installing from, typically:
PSM\InstallationAutomation\Prerequisites

2. Edit the powershell file called "InstallRDS.psm1" you can do this via notepad too.

3. Search for the line:

$cb="$env:computername.$env:userdnsdomain"

and replace it with this:

if($(Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\tcpip\Parameters | select -ExpandProperty Domain) -eq $env:userdnsdomain)
{
               $cb="$env:computername.$env:userdnsdomain"
}
Else
{
               $cb="$env:computername.$(Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\tcpip\Parameters | select -ExpandProperty Domain)"
}

It should look like this:

(Before)
image.png
(After)
image.png

4. Save the file and run the installation.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001IhICAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail