Hello everybody,
I am faced with the challenge of having selected users from a Windows domain connect to an RDS server via a session.
The RDS server is member of a foreign domain and there is no trust between the domains.
I have several accounts from the target domain which should be uniquely assigned to users from the source domain.
To minimize the administrative effort, I want to make sure that the assignment is done automatically based on the logged in Windows user.
This can be done quite easily via a Powershell script.
Is it also possible to do this via a configured session in the Remote Desktop Manager?
Many thanks in advance!
Ralf
Hello Ralf,
Is the PowerShell script works outside of RDM with a MSTSC session or the RDP connection to the RDS server is not currently supported by the PowerShell?
I'm trying to figure out the scenario, sorry.
Regards,
David Grandolfo
Hi David,
actually I use the Windows Scheduler on a RDS that triggers a powershell script that runs outside RDM.
When a domain user logs on there, the Powershell script is started via task scheduling at user login.
A simple "if-query" is made there to find out which user it is and with which account of the target domain the login should be done.
Kind regards,
Ralf
Hi David,
Another approach would be to hide an active session in the RDM folder so that users do not kick each other.
Is this possible?
Kind regards,
Ralf
Hi Ralf,
I think that our PowerShell event could achieve what you are looking for.
In an RDP session go to the Events section then Before Connect and select PowerShell If you adjust your script it could probably match your requirement.
For information you can set a username with the line below.
$RDM.Connection.RDP.Username = $NewUsername;
Regards,
David Grandolfo