I have an app that runs on a 2012 terminal server farm. It uses the WTSclientname to set a number of parameters. Here is what the vendor said:
"The app calls the Unicode version of this function:
learn.microsoft.com
. It is from WtsApi32.DLL and returns these variables:
https://docs.microsoft.com/en-us/windows/desktop/api/wtsapi32/ne-wtsapi32-_wts_info_class
. The one we use to determinate a client name is WTSClientName"
The problem I have is that we purchased 13 Acer Iconia Tablets to connect to RDP for mobile use of the app on TS, and all of them are reporting B3-A40-7.0 (per Acer support that is the boardID, a mix of the model and the current android version) instead of the net.hostname set in the Android OS.
I need them all to have unique hostnames… How do I get them to use the net.hostname properly, or how do I set the WTSClientName explicitly on RDP connect?
See if you can pull the name in HKEY_CURRENT_USER\Volatile Environment\CLIENTNAME and write it to a variable…
What RDP app are you using? Maybe a different RDP app will get the proper name?
Look at this too…
http://www.sanjbee.com/content/?p=379