This is not the latest version of Ivanti Workspace Control documentation.
View available documentation.

Add and remove Citrix XenApp Servers using the command line

You can use command-line parameters to add or remove Citrix XenApp servers to server groups without using the Management Console. This is typically used in an automated scenario where Automation is used to re-install a Citrix XenApp Server with new software. Tasks can be configured in Automation to remove a server from a Server Group, then to remove the old software from the server, to install the new software, and finally to (re-)add this server to the relevant Server Group.

Command lines

Action

Command line

Example

Add a Citrix XenApp server to a server group

pwrtech.exe /serveradd=<server name> /group=<server group>

C:\progra~1\respow~1\pwrtech.exe /serveradd=CTX10 /group=CTXServerGroup

Remove a Citrix XenApp server from a server group

pwrtech.exe /serverremove=<server name> /group=<server group>

C:\progra~1\respow~1\pwrtech.exe /serverremove=CTX10 /group=CTXServerGroup

Remove a Citrix XenApp server from all server groups

pwrtech.exe /serverremove=<server name> /group=*

C:\progra~1\respow~1\pwrtech.exe /serverremove=CTX10 /group=*

Citrix Provisioning Services

You can also use this technique for Citrix Provisioning Services scenarios. Suppose you have two Citrix XenApp Server silos (a Microsoft Office Silo and an SAP Silo):

CTXSRV001 Office Silo

CTXSRV002 Office Silo

CTXSRV003 Office Silo

CTXSRV004 Office Silo

CTXSRV005 Office Silo

CTXSRV006 SAP Silo

CTXSRV007 SAP Silo

CTXSRV008 SAP Silo

CTXSRV009 SAP Silo

Because the SAP silo is overloaded, Citrix Provisioning Services is used to quickly transform servers CTXSRV004 and CTXSRV005 into SAP servers.

CTXSRV001 Office Silo

CTXSRV002 Office Silo

CTXSRV003 Office Silo

CTXSRV004 SAP Silo

CTXSRV005 SAP Silo

CTXSRV006 SAP Silo

CTXSRV007 SAP Silo

CTXSRV008 SAP Silo

CTXSRV009 SAP Silo

However, the Citrix XenApp Server farm still thinks that CTXSRV004 and CTXSRV005 are servers on which Microsoft Office has been installed, and the farm will be load balancing Office users to CTXSRV004 and CTXSRV005. As a result, Microsoft Office users will experience that the application is unavailable (because it has not been installed) and SAP users will not be load balanced to these new servers. Therefore, the servers on which these applications are published need to be adjusted, by using the above described method. The Automation Agent can be embedded in the Citrix Provisioning Services image together with a Workspace Control installation. When the image gets online, Automation and Workspace Control will automatically perform the necessary steps.