Tom Swift Posted March 21, 2017 Share Posted March 21, 2017 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
0 Tom Swift Posted March 22, 2017 Author Share Posted March 22, 2017 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: https://www.citrix.com/downloads/citrix-cloud/product-software/xenapp-and-xendesktop-service.html 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. 2 Link to comment
0 Martin Rowan Posted March 21, 2017 Share Posted March 21, 2017 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
0 Martin Rowan Posted March 22, 2017 Share Posted March 22, 2017 Tom it would be good to know what cmdlet was needed from the 6.5 SDK. To determine if it's available elsewhere as the 6.5 SDK ideally shouldn't be needed on 7.13. Do you know? Thanks Martin Link to comment
0 Kyle Richardson1709152668 Posted May 5, 2017 Share Posted May 5, 2017 I had this same problem. I'm using the Import-XAFarm scripts provided by citrix cloud for migrating xa65 applications to XA 7.13. Downloading and installing the SDK for 7.13 worked for me. I don't believe this was specifically called out in the migration steps as a needed prereq. Link to comment
0 Chris Hahn Posted August 31, 2017 Share Posted August 31, 2017 I'm having a similar issue with the Import-Policy command. I get "Import-Policy : Citrix Group Policy Provider Snapin is not installed". This is on a XenDesktop 7.15 controller. Adding the 6.5 SDK did not fix issue for policy import. Link to comment
0 Francis Nefzger Posted August 2, 2018 Share Posted August 2, 2018 Is there a fix for this issue? Nothing on this blog resolves this issue for XA7.15CU2. Link to comment
0 Martin Reis Posted August 15, 2018 Share Posted August 15, 2018 Does this one from Shaun Ritchie help?https://euc.consulting/blog/xenapp6-to-xenapp7-app-migration-script/ It is vice versa, as you install the XD broker-part on the XA 6.5-controller. XenApp 6.x farm and run the script from there. Link to comment
0 Cesar Alba1709162721 Posted September 9, 2021 Share Posted September 9, 2021 There is PowerShell Snapin for Citrix Xenapp 5?? Thanks in advance. Link to comment
Question
Tom Swift
Error:
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
Link to comment
8 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now