• XenApp 5 for Windows Server 2003 Documentation Script Version 4.2 Released

    A feature that has been requested in all the XenApp documentation scripts for a good while is the ability to print a specific section of the report.  This feature and a couple of bug fixes are what make up Version 4.2.

    Note: This is the last version of this script.  Other than bug fixes, there will be no more enhancements or updates to this script.

    The list of changes in Version 4.2:

    • Fix the SWExclusions function to work if SoftwareExclusions.txt file contains only one item
    • Cleaned up the script’s parameters section
    • Cleanup Word table code for the first row and background color
    • Cleanup retrieving services and service startup type with Iain Brighton’s optimization
    • Add more write-verbose statements and error handling to the Configuration Logging report section
    • Added beginning and ending dates for retrieving Configuration Logging data
    • Add Section parameter
    • Valid Section options are:
      • Admins (Administrators)
      • Apps (Applications)
      • ConfigLog (Configuration Logging)
      • Farm
      • LoadEvals (Load Evaluators)
      • Policies
      • Printers (Print Drivers and Print Driver Mappings)
      • Servers
      • Zones
      • All

    Sam Jacobs found a bug in the SWExclusions function.  If the SoftwareExclusions.txt file contained a single entry, the function did not work.  This is now fixed.

    For all the other scripts, I have added new output parameters.  The parameters section was getting very ugly looking and over complicated.  Turns out I was making that section much more difficult than it needed to be.  After simplifying the code, the help text for the parameters, to me, looks much better.  Even though this script will not get formatted text or HTML output options, the cleaner parameters section was needed.

    F:\XA52003_Inventory_V42.ps1 [-MSWord] [-Hardware] [-Software] [-StartDate <DateTime>] [-EndDate <DateTime>]
    [-Summary] [-AddDateTime] [-Section <String>] [-CompanyName <String>] [-CoverPage <String>] [-UserName <String>]
    F:\XA52003_Inventory_V42.ps1 [-PDF] [-Hardware] [-Software] [-StartDate <DateTime>] [-EndDate <DateTime>]
    [-Summary] [-AddDateTime] [-Section <String>] [-CompanyName <String>] [-CoverPage <String>] [-UserName <String>]

    When I was creating the DHCP and Active Directory scripts, I found out the code I was using for the header row in a Word table was too verbose.  I learned how to reduce the lines of code needed to set the header row and give it a background color and make the text bold.

    I am working with a group of very talented and hard-working friends to create a master template script.  One of my new EMEA friends, Iain Brighton, showed me a more efficient way to get the list of services that included the startup mode.  My original method required two WMI calls. Iain gets it done in one line resulting in less code and much faster execution time.

    Somehow I had added parameters for the Start and End dates for retrieving the configuration logging data but I never put the code in this script.  I had the code in all the other scripts.  That oversight is now corrected.

    When using the new -Section parameter, the report will contain only data for the section you specify.  If you need to report on Applications, that is the only data that will be in the report.

    Since this script will no longer be updated, I am moving it to the Archive section of the downloads page.

    You can always find this script in the Archive section by going to https://carlwebster.com/where-to-get-copies-of-the-documentation-scripts/



    About Carl Webster

    Webster is a Sr. Solutions Architect for Choice Solutions, LLC and specializes in Citrix, Active Directory and Technical Documentation. Webster has been working with Citrix products for many years starting with Multi-User OS/2 in 1990.

    View all posts by Carl Webster

    8 Responses to “XenApp 5 for Windows Server 2003 Documentation Script Version 4.2 Released”

    1. Markus K Says:

      Hey Carl!

      First of all, you are the KING!

      My question is regarding how to exclude servers from being analyzed by he script?

      I have a quite large implementation which is provisioned by PVS and therefore I would like to specify only one server of each Vdisk.

      Allso, is it possible to stop the script and still get what is documented so far in the process? Have been running for 3 days straight an would not like to start all over 🙂



    2. Bojan S Says:

      Thanks for the quick response. I saw where I was going wrong. How would I go about adding more then one parameter to a section?

      Apps and Servers
      .\XA52003_Inventory_V42.ps1 -Section Apps, Servers?


      • Carl Webster Says:

        You can’t. People who requested this feature only wanted to do one section at a time so that is all I coded for.



    3. Bojan S Says:


      What is the syntax on how to specify what section you want the report on? For instance just applications?

      I have been trying to specify but it is not working for me, I am probably doing something wrong.




      • Carl Webster Says:

        From the help text:

        .PARAMETER Section
        Processes a specific section of the report.
        Valid options are:
        Admins (Administrators)
        Apps (Applications)
        ConfigLog (Configuration Logging)
        LoadEvals (Load Evaluators)
        Printers (Print Drivers and Print Driver Mappings)
        This parameter defaults to All sections.

        PS C:\PSScript > .\XA52003_Inventory_V42.ps1 -Section Policies

        Will use all Default values.
        HKEY_CURRENT_USER\Software\Microsoft\Office\Common\UserInfo\CompanyName=”Carl Webster” or
        HKEY_CURRENT_USER\Software\Microsoft\Office\Common\UserInfo\Company=”Carl Webster”
        $env:username = Administrator

        Carl Webster for the Company Name.
        Sideline for the Cover Page format.
        Administrator for the User Name.
        Processes only the Policies section of the report.

        So to do just the application section:

        .\XA52003_Inventory_V42.ps1 -Section Apps

        Hope that helps



      • Bojan S Says:

        I just figured it out.



    Leave a Reply