If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Category Widget (bottom-up)

Recent Articles

alainassaf

I recently came across a situation where I needed to clear users off a server in production for testing. Typically, we assign a load evaluator to keep new users from connecting to it and watch the server. When a user’s session becomes disconnected, we log the user off. This can take a while depending on how busy the server is and is about as exciting as watching grass grow. So, I thought “PowerShell can fix this problem!” Here’s the result. Download link follows code.

We are in the midst of architecting a new Citrix environment where I work and we are taking advantage of this to review everything we have done before and changing it if needed. We’re also attempting to document every facet of our new environment which includes, Provisioning (DHCP), XenApp, XenServer, XenDesktop, AppSense, Netscalers, Web Interface, and MS App-V.

For this post, I’m providing a PowerShell script I modified from Kent Finkle that will capture a Citrix Policy and what it’s applied to in a Word document. The script will also export the Citrix policy and its filter (what it’s applied to) to 2 XML files that can be used to recreate or restore the configuration if it’s lost.
NOTE: This script assumes that the XenApp PowerShell Commands are installed on the server you’re running the script from. You can download them from www.citrix.com.

Here’s a sample of the Word document (sanitized for public consumption):

The intention is to run this script periodically to provide documentation and a backup of all the policies applied to a farm. I encourage you to explore the PowerShell commands provided by Citrix. You will be able to document every aspect of your farm and also have an easy way to backup/restore the information as needed.