How to Install Citrix PowerShell Plugins Step by Step

How to Install Citrix PowerShell Plugins Step by Step

In case you are just starting with Citrix and or PowerShell this should be helpful on showing you how to get going. This gets your admin workstation ready to do work from it instead of always remoting to the Delivery Controllers. You could just find these MSIs and Launch them all and walk through the wizards but creating this script will take less time and if anything it helps with understanding basic troubleshooting with scripting that can be used and how easy things can be scripted. I’m no scriptmaster I’m just lazy.

This is a lazy way to make a quick installer file without any coding just some copying and pasting. There are always things you can script but sometimes it is easier and simpler to just do it manually because there are not that many items to work with. This is a way an old Microsoft Jedi taught me how make simple scripts quickly without typing it all out, “Sometimes it is easier to script and sometimes it is easier to just do it manually”.

  1. Have you been like I need to run something from Citrix commands from PowerShell and you get this?
  2. Just run this “Add-PSSnapin Citrix*” they say.
    1. Error
      1. Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 1.
      2. At line:1 char:1
      3. + Add-PSSnapin Citrix*
      4. + ~~~~~~~~~~~~~~~~~~~~
      5. + CategoryInfo : InvalidArgument: (Citrix*:String) [Add-PSSnapin], PSArgumentException
      6. + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
  3. You need to have a valid MyCitrix account that is entitled to download XenApp or XenDesktop to pick up the bits you need.
  4. Download the ISO of the XenDesktop Version you are using or just find it on your admin share. You could use the newest version but you may run into problems that cmdlets exist in the new but not in your older version.
  5. Mount and or Extract the Media. Whichever floats thy boat.
  6. Open the root of the media and Select x64 or x86 based on what OS you are going to execute this on.
  7. Search for “Powershell” within that folder.
  8. Copy the files to your working directory. I just made a folder under downloads in this example.
    1. At this time with 7.12 there were 19 Snap-ins.
  9. Open an Elevated Administrative PowerShell or CMD and CD to the directory.
  10. Highlight and Copy the filenames to notepad (Yeah I missed that I on Configuration Logging)

    Sample Quiet and Passive MSI Installation.

  11. Good Guide if you need or want to get fancier with logging
  12. Just like anything in the IT world if you have Spaces in a file name then you need to Quote it. Not sure why the PVS SDK was the only one that was like this.
  13. Type Copy and Paste your first “msiexec.eve /i ” and paste it in front of all your file names.
  14. Then Copy and Paste your first ” /qn /passive” to the end of your file names.
  15. Now you have a script that is ready to rock. Since this is less than 20 Copies and Pastes it is easier than doing it manually.
  16. Within Notepad just select File -> Save As
  17. Enter whatever name you want it to be and make sure and make it a .cmd or .bat so it will be executable within Windows. Put this new script within the directory you have the MSI files in to make it a portable folder to other systems.
  18. Go back to your Elevated Administrative PowerShell or CMD and launch the beast.
  19. Now you can take this directory and drag it around and install them wherever you need it.
  20. If you don’t think you will ever need some of these Snap-Ins then just remove them from your script.
  21. #Win
    1. No Complaints, Shake and Bake and Move on to the next thing.

If you can put all the Installers in the Directory here is a sample script


Leave a Reply

Your email address will not be published. Required fields are marked *