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”.
- Have you been like I need to run something from Citrix commands from PowerShell and you get this?
- Just run this “Add-PSSnapin Citrix*” they say.
- Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 1.
- At line:1 char:1
- + Add-PSSnapin Citrix*
- + ~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (Citrix*:String) [Add-PSSnapin], PSArgumentException
- + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
- You need to have a valid MyCitrix account that is entitled to download XenApp or XenDesktop to pick up the bits you need.
- 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.
- Mount and or Extract the Media. Whichever floats thy boat.
Open the root of the media and Select x64 or x86 based on what OS you are going to execute this on.
Search for “Powershell” within that folder.
Copy the files to your working directory. I just made a folder under downloads in this example.
- At this time with 7.12 there were 19 Snap-ins.
Open an Elevated Administrative PowerShell or CMD and CD to the directory.
Highlight and Copy the filenames to notepad (Yeah I missed that I on Configuration Logging)
Sample Quiet and Passive MSI Installation.
- Good Guide if you need or want to get fancier with logging http://www.advancedinstaller.com/user-guide/msiexec.html
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.
- Type Copy and Paste your first “msiexec.eve /i ” and paste it in front of all your file names.
- Then Copy and Paste your first ” /qn /passive” to the end of your file names.
- 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.
- Within Notepad just select File -> Save As
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.
Go back to your Elevated Administrative PowerShell or CMD and launch the beast.
Now you can take this directory and drag it around and install them wherever you need it.
If you don’t think you will ever need some of these Snap-Ins then just remove them from your script.
- 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
msiexec.exe /i ADIdentity_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i Analytics_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i AppLibrary_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i Broker_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i ConfigurationLogging_PowerShellSnapIn_x64.ms /qn /passive
msiexec.exe /i Configuration_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i DelegatedAdmin_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i EnvTest_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i Host_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i LicensingAdmin_PowerShellSnapin_x64.msi /qn /passive
msiexec.exe /i MachineCreation_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i Monitor_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i Orchestration_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i "PVS PowerShell SDK x64.msi" /qn /passive
msiexec.exe /i PzAppV_Studio_PowershellSnapin_x64.msi /qn /passive
msiexec.exe /i Storefront_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i Trust_PowerShellSnapIn_x64.msi /qn /passive
msiexec.exe /i UserProfileManager_PowerShellSnapIn_x64.msi /qn /passive