$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
6 Dec // php the_time('Y') ?>
Some applications use the computer’s name as a unique identifier, rather than using the user name. In a single-user-per-computer environment, this strategy works well.
However, in a Multi User environment such as Citrix XenApp or Microsoft’s Remote Desktop Services (Terminal Server), all connected users report the same computername.
If the application relies on unique computernames to handle tasks such as file and record locking, then the application will fail.
We can however set an Application Compatibility Flag in the registry to return the username instead of the computername.
To demonstrate this behaviour I wrote a small Test Application called TestAppCompatFlags.exe.
Without the compatibility flags the application will return the Computername and Username when pressing the buttons:
When you press the Set Compatibility Flag button the following registry key will be created:
1 | HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Compatibility\Applications\TestAppCompatFlags |
In this key a DWORD value Flags will be set to 18 HEX.
You need to restart the test application to test the new behaviour:
TestAppCompatFlags.zip (3948 downloads )
One Response for "Return username instead of computername to Applications"
Hi,
I tried using your test application in a Windows 2003 SP2 server , but it still returns the computer name , however the same worked in a Win 2008 server.
is there anything specific to be configured other than these flags to get the username instead of computer name.
Any help is much appreciated.
Thans
Karthik
Leave a reply