Citrix Optimizer Automation

Citrix Optimizer Automation

It’s no secret that Citrix have a great optimization tool for your base images. You can find it here and there are also a bunch of good community driven templates available to add additional functionality to your optimizations.

But, what if you want to automate the creation of a template? This PowerShell module will allow you to do exactly that!

PowerShell module to automate the creation of Citrix Optimizer Templates using simple pre-build cmdlets such as:

  • New-CitrixTemplate
  • New-CitrixTemplateGroup
  • New-CitrixTemplateService
  • New-CitrixTemplateTask
  • New-CitrixTemplateRegistry
  • New-CitrixTemplateScript

The reason behind creating this module is the time is takes to build up the template files using the user interface. Often customers have various CSV files and JSON files with the settings you want applied to a master image, with this module you are able to parse those files and inject the settings automatically.

Installing the Module

PowerShell Support

Citrix Optimizer Automation supports Windows PowerShell 5.1 and above.

The Citrix Optimizer Automation module is published in the PowerShell Gallery

You can install the module by entering the below commands in an elevated PowerShell session:

Install-Module -Name CitrixOptimizerAutomation
Import-Module -Name CitrixOptimizerAutomation

Updating the Module

If you have installed a previous version of the module from the gallery, you can install the latest update with Update-Module and the -Force parameter:

Update-Module -Name CitrixOptimizerAutomation -Force


New-CitrixTemplateCreates a new Citrix Optimizer template
New-CitrixTemplateGroupCreates a new Group
New-CitrixTemplateServiceCreates a new Windows Service definition
New-CitrixTemplateTaskCreates a new Windows Scheduled Task definition
New-CitrixTemplateRegistryCreates a new Windows Registry definition
New-CitrixTemplateScriptCreates a new PowerShell Script definition

© 2023. All rights reserved.