When you connect to the XenApp server using "mstsc /admin" option, RD license is consumed if XenApp is installed. If XenApp is not installed, you can connect to server (maximum two sessions) by "mstsc /admin" without consuming RD license.
Refer to Command line parameters for Remote Desktop Connection.
Normal remote connection: “mstsc”
Remote administrative connection: “mstsc /admin”
Prepare a server (Windows2008R2) in the environment where you do not have RD license server.
Ensure you can connect to server using mstsc /admin without RD license.
Install XenApp on the server.
You cannot connect to the server using "mstsc /admin".
Add RD license server in the environment.
You can now connect to the server using "mstsc /admin".
This issue is by design of Windows 2008 R2 or later.
Windows Remote Desktop Service allows two concurrent remote administrative connections through the Windows built-in RDP which do not consume RD licenses.
Any connection through third party RDS procotol (for example, XenApp RDP proxy protocol extension) consumes a RD license, even though the connection is made using “mstsc /admin”.