2X Additional
Utilities
2XA Generator
2XA
Generator is a command line utility to create 2xa files. 2xa files contains the
required information to launch a published item. To use 2XA Generator, run
2XAGen.exe [c:\Program Files\2X\APPLICATIONSERVER\2XAGen.exe] in a command
prompt and pass the appropriate parameters.
Parameters
-h Displays the help message
-v Displays the version number
-s server Primary 2X Secure Client Gateway Server
-p port 2X Secure Client Gateway Port
-a application Application Name
-u user User Name
-pw password User's password
-pc password User's password, saved as clear text
-d domain Domain
-ss server Secondary 2X Secure Client Gateway Server
-pr parameters Application Parameters
-o file Output file
2XA Generator
Examples
EXAMPLE
1:
2XAGen.exe
-s "TSServer1" –p 80 -a "Word"
OUTPUT OF EXAMPLE 1:
<App
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<Connection>
<Port
dt:dt="ui4">80</Port>
<PrimaryServer>TSServer1</PrimaryServer>
</Connection>
<Startup>
<PublishedApp>Word</PublishedApp>
</Startup>
</App>
EXAMPLE
2:
2XAGen
-s "TSServer1" -p 80 -a "Word" -u "Testuser1" –pc "mypassword" -d
"mydomain" -ss "TSServer2" –pr"C:\document.doc" -o word.2xa
OUTPUT OF EXAMPLE 2: [content
of word.2xa]
<App
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<Connection>
<Port
dt:dt="ui4">80</Port>
<PrimaryServer>TSServer1</PrimaryServer>
<SecondaryServer>TSServer2</SecondaryServer>
</Connection>
<Logon>
<Passworddt:dt="bin.base64">nqLSKZch8PVBrG5l+Iq0qQ==</Password>
<Domain>mydomain</Domain>
<User>Testuser1</User>
</Logon>
<Startup>
<OverrideParams>C:\document.doc</OverrideParams>
<PublishedApp>Word</PublishedApp>
</Startup>
</App>