How to Run an Unattended XenApp 6 and 6.5 Configuration

How to Run an Unattended XenApp 6 and 6.5 Configuration

book

Article ID: CTX124295

calendar_today

Updated On:

Description

This article describes how to configure XenApp 6 and XenApp 6.5 using an unattended process.

Requirements

XenApp 6 on Windows 2008 R2 and/or Windows 2008R2 SP1
XenApp 6.5 on Windows 2008 R2 and/or Windows 2008R2 SP1

Instructions

Complete the following steps to run an unattended XenApp 6/XenApp 6.5 configuration:

  1. Install Windows 2008 R2.

  2. Add Remote Desktop Service Role.

  3. Install XenApp 6/6.5 without any configuration.

  4. Copy the IMA data store DSN file on to the server using the following command:

Copy \\[Your path]\sql.dsn c:\sql.dsn

  1. Run the following script to create a farm:
"XenAppConfigConsole.exe" /ExecutionMode:Create /FarmName:[FarmName] /CitrixAdministratorAccount:%computername%\administrator /AddLocalAdmin:True /LicenseServerName: [License Server Name or IP] /LicenseServerPort:27000 /ZoneName:Zone1 /AddUsersGroupToRemoteDesktopUserGroup:True /CustomXMLserviceport:8080 /AuthenticationType:sql /DsnFile:c:\sql.dsn /OdbcUsername: /odbcPassword: /log:c:\createfarm.log
  1. Copy the IMA data store DSN file on to the server using the following command:

copy \\[Your Path]\sql.dsn c:\sql.dsn

“XenAppConfigConsole.exe" /ExecutionMode:Join /LicenseServerName:[License Server Name or IP] /LicenseServerPort:27000 /ZoneName:Zone1 /AddUsersGroupToRemoteDesktopUserGroup:True /CustomXMLserviceport:8080 /AuthenticationType:sql /DsnFile:c:\sql.dsn /OdbcUsername: /odbcPassword: /log:c:\joinfarm%1.log

NOTE:  Use 'Execution Mode: Leave' to leave the farm.
  1. Run the following script to join a farm:
    “XenAppConfigConsole.exe" /ExecutionMode:Join /LicenseServerName:[License Server Name or IP] /LicenseServerPort:27000 /ZoneName:Zone1 /AddUsersGroupToRemoteDesktopUserGroup:True /CustomXMLserviceport:8080 /AuthenticationType:sql /DsnFile:c:\sql.dsn /OdbcUsername: /odbcPassword: /log:c:\joinfarm%1.log
    Note: This article follows a two step process; Create farm (step 5) and Join farm (step 7).
    The DSN file info is used to create/join the farm:
    Database used for the XenApp farm data store
    *•/DsnFile - required when creating or joining a farm*
    /OdbcUserName - required when creating and joining a farm
    /OdbcPassword - required when creating and joining a farm
          Note: /IMAWorkerMode: True, if needed to use Session-Host Mode only.

Issue/Introduction

This article describes how to configure XenApp 6 using an unattended process.

Additional Information

Running the tool in a Command prompt with help switch allows you to view all options:

C:\>"C:\Program Files (x86)\Citrix\XenApp\ServerConfig\XenAppConfigConsole.exe" /help

Citrix XenApp Server Configuration Tool [Version 0.5]

Copyright (c) 2009 Citrix Systems, Inc. All rights reserved.

XenApp Configuration Options:

/NotStrict
/Confirm
/Pause
/Log:<log file>
/SqlExpressRootDir:<SQL Express Install Src Dir> (Default:..\Sql Express 2008)
/ExecutionMode:[Create | Join | Leave]
/FarmName:<Farm Name>
/CitrixAdministratorAccount:<Domain Name/User Name>
/SimpleDB
/ServerName:<Citrix Server>
/DsnFile:<Dsn File>
/AuthenticationType:[Windows | Sql] (Default:Windows)
/OdbcUserName:<The Odbc User Name>
/OdbcPassword:<The Odbc Password>
/LicenseServerName:<License Server Name>
/LicenseServerPort:<License Port> (Default:2700)
/EnableShadowing:[True | False] (Default:False)
/ProhibitRemoteControlShadowing:[True | False] (Default:False)
/ForceShadowAcceptancePopup:[True | False] (Default:False)
/LogAllShadowConnections:[True | False] (Default:False)
/SmartAuditorServerName:<Smart Auditor Server>
/ZoneName:<Zone Name> (Default:Default Zone)
/CustomXmlServicePort:<Port Number> (Default:80)
/AddAnonymousUsersToRemoteDesktopUserGroup:[True | False] (Default:False)
/AddUsersGroupToRemoteDesktopUserGroup:[True | False] (Default:False)
/AddAuthenticatedUsersToRemoteDesktopUserGroup:[True | False] (Default:False)
/AddLocalAdmin:[True | False] (Default:False)
/SkipXmlSetting:[True | False] (Default:False)

Mapping old tool Parameters to XenApp Configuration Options:

FARM_SELECTION /ExecutionMode:
NEW_FARM_NAME /FarmName:
DOMAIN_NAME, USER_NAME /CitrixAdministratorAccount:
SILENT_DSNFILE /DsnFile:
ODBC_USER_NAME /OdbcUserName:
ODBC_PASSWORD /OdbcPassword:
LICENSE_SERVER_NAME /LicenseServerName:
LICENSE_SERVER_PORT /LicenseServerPort:
SHADOWING_CHOICE /EnableShadowing:
ZONE_NAME /ZoneName:
XML_PORT_NUMBER /CustomXmlServicePort:
XML_CHOICE
ADD_ANON_USERS /AddAnonymousUsersToRemoteDesktopUserGroup:
SHADOW_PROHIBIT_REMOTE_ICA /ProhibitRemoteControlShadowing:
SHADOW_PROHIBIT_NO_NOTIFICATION /ForceShadowAcceptancePopup:
SHADOW_PROHIBIT_NO_LOGGING /LogAllShadowConnections:
CREATE_REMOTE_DESKTOP_USERS /AddUsersGroupToRemoteDesktopUserGroup:

Return Codes:

0 - Success
1 - Invalid Command-line options
2 - Unmatched Parameters
3 - Invalid Parameters
4 - Commit Failed

Exit Code:

Successful