Enable XenApp Configuration Logging using PowerShell

Configuration Logging is the possibilty to log every action a system engineer does in XenApp.

It is possible to silently enable this feature using the following steps:

  • Create an empty SQL database and assign a account with read+write rights
  • Download the XenApp SDK for PowerShell here
  • Install the XenApp SDK module on a XenApp server
  • Click: Start, All Programs, Citrix, XenApp 6.5 Server SDK and start Windows PowerShell with Citrix XenApp 6.5 Server SDK
  • Enter the following command, this is an example:
    Set-XAConfigurationLog -LoggingEnabled $true
    -ChangesWhileDisconnectedAllowed $true
    -CredentialsOnClearLogRequired $true
    -DatabaseType SqlServer
    -AuthenticationMode Integrated
    -ConnectionString “Server=SQL-SERVER-NAME;Database=SQL-Database;User ID=DOMAIN\USERACCOUNT;Password=PASSWORD;Trusted_Connection=False;Encrypt=False;”

Download the script here

  • Replace the following:
  1. SQL-SERVER-NAME = SQL Server where the database is created
  2. SQL-DATABASE-NAME = SQL Database name
  3. DOMAIN = Domain where the account resists of the service account for SQL
  4. USERACCOUNT = Account with read+write rights within SQL
  •  Run the command, this will enable Configuration Logging

XenApp Configuration Logging

The following options are available if you want to change the parameters:

Set-XAConfigurationLog
-LoggingEnabled                             $true
-ChangesWhileDisconnectedAllowed             $true
-CredentialsOnClearLogRequired                 $true
-DatabaseType                                 Unknown, SqlServer, Oracle
-DatabaseUser                                 <PSCredential>
-AuthenticationMode                             None, Native, Integrated
-ConnectionString                        “Server=SQL-SERVER-NAME;Database=SQL-Database;User ID=DOMAIN\USERACCOUNT;Password=PASSWORD;Trusted_Connection=False;Encrypt=False;”
-PassThru
-DatabaseUser

If you cannot manage to get it working: An other alternative is to create the Configuration Logging manually using the wizard in Citrix AppCenter and afterwards get the parameters for the script using the following command: Get-XAConfigurationLog

 

Can’t get the solution to work? Contact me and let me do the trick.

 

 

 

Advertisements
This entry was posted in Citrix XenApp and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s