Jump to content
Welcome to our new Citrix community!
  • 0

The Citrix Common Commands PowerShell Snapin is not installed


Tom Swift

Question

Error:

Import-XAFarm : The Citrix Common Commands PowerShell Snapin is not installed
You must have the Citrix Common Commands PowerShell Snapin installed to use this script
At line:1 char:1
+ Import-XAFarm -XmlInputFile c:\xafarm.xml -LogFile c:\xafarm-import.log -preview
 

Getting the above error message when I try to run a Powershell import script that I've previously used without any issues in XA7.11 but fails in XA7.13 (new build).

 

Start Powershell as Administrator

set-executionpolicy unrestricted

asnp citrix*
cd \migration\importfma
import-module .\importxafarm.psd1
Import-XAFarm -XmlInputFile c:\xafarm.xml -LogFile c:\xafarm-import.log -preview

 

These commands both work
Get-Command –Module Citrix.*
Get-PSSnapin -Registered
 
Running this from my XA7.13 Controller with Studio installed.

 

Link to comment

8 answers to this question

Recommended Posts

  • 0

https://www.citrix.com/downloads/xenapp/sdks/powershell-sdk.html

XenApp 6.5 Powershell SDK - Version 6.5
Feb 11, 2014
 
THANK YOU!
 
I downloaded the XenApp 6.5 SDK and installed it on my XenApp 7.13 controller and then my Powershell script ran perfectly.
 
Out of curiosity, I also downloaded the following and it worked as well:
 

XenApp and XenDesktop Remote PowerShell SDK

Feb 23, 2017
Download File
The XenApp and XenDesktop service provides an SDK based on a number of Microsoft Windows PowerShell version 3.0 snap-ins that allow you to perform the same tasks as you would with the Citrix Studio Console, along with tasks Studio couldn't perform alone.
 
Install and run the SDK on a remote Windows machine, which can be used to manage the deployment of Citrix Cloud services.
  • Like 2
Link to comment
  • 0

The Citrix Common Commands is from the XenApp 6.5 SDK which was removed from 7.13, but can be re-installed by downloading and installing the 6.5 SDK.

 

Is your script specifically looking to load this SnapIn? Or is it using a command from this SnapIn that is no longer working?

 

I believe an icon import function from the SDK was retained in the new 7.13 Broker snapin as in order to retain backward compatibility with a documented example. 

Thanks Martin

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...