Install RDS when logged in user has different domain than the PSM server
Objective
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"
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."
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)
(After)
4. Save the file and run the installation.