About Me

My photo
This blog has been created to share technical information, interesting innovations that I notice on daily basis and Architectural/Consulting overview of various technologies. My areas of interest, on which I would be blogging, are VMware, Microsoft and Citrix Technologies. I hope you will enjoy this blog and share your experience with me.

Documenting Citrix XenApp 6.5 Inventory Assessment Script - Windows PowerShell

Imagine yourself in a situation where you have to capture the entire XenApp 6.5 Farm information to understand what the customers have in their environment. The traditional way to understand the environment is  to sit down multiple times with the CTX Architects/Admins to understand the details of infrastructure and even then missing on important details. This script will document whatever you see under the Citrix AppCenter Console and the output can be copied to a txt or word document.

My Testing results

I ran the script in my environment and generated the output as per the figures mentioned below. I am listing down certain requirements and things I learnt during the execution:

Step 1:

  • Download the Citrix XenApp 6.5 PowerShell SDK and simply go through the typical installation
  • Downloaded the Citrix XenApp Group Policies and place the files under two folders
    • C:\Windows\System32\WindowsPowerShell\v1.0\Modules, in a new folder named Citrix.GroupPolicy.Commands
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules, in a new folder named Citrix.GroupPolicy.Commands
  • Make sure you open the File Properties of Citrix.GroupPolicy.Commands.psm1 file and click on Unblock and click Apply and OK. If you don’t go through this step you will get an error during importing of module

Step2:

  • Open Windows PowerShell console and type Set-ExecutionPolicy RemoteSigned
  • Open Windows PowerShell screen and type import-module Citrix.GroupPolicy.Commands

Step3:

  • Download the script from Script and place the script under the C:\XAInventory folder
  • Click Start – All Programs – Citrix – XenApp 6.5 Server SDK - Windows PowerShell with Citrix XenApp 6.5 Server SDK
  • Navigate to C:\XAInventory folder and type .\XA65_Inventory.ps1 |out-file .\XA65Farm.txt
  • Copy the output from C:\XA65Farm\XA65Farm.txt to a Word Document for better reading and formatting.

Step4:

  • Analyze the customer environment with complete detailed information for the XenApp 6.5 infrastructure

Inventory Output Results:

XenApp Inventory Output

A lot more is captured with respect to Server, Zones, Applications etc. Check it out yourself to experience the in depth details

Source: (Thanks)
Lets give some respect and thanks to the author of this script Carl Webster because of whom we all will be saving none less than 30-40 hours of efforts in capturing details of the XenApp Environment. He has written a 13 page blog on what all information is captured in the inventory script. Note if you check out his blog there are scripts for multiple versions of XenApp 6.5/6/5

If you like this post please leave your valuable comments

Best Regards,
Aresh Sarkari

My Blog List