How to customize AWS EC2 hosting connection with PowerShell

If you need to add EC2 connection with different URL or you have to connect to internet via proxy server, please create EC2 hosting connection manually with PowerShell rather than Citrix Studio.

1. Launch PowerShell from DDC host and load all Citrix modules:

asnp citrix*

2. Configure environment variables for proxy server and port:

$server = “<PROXY_SERVER>”

$port = “<PROXY_SERVER_PORT>”

$options = “ProxyHost=$server,ProxyPort=$port”

Note: Replace both <PROXY_SERVER> and <PROXY_SERVER_PORT> with your own one.

3. Run below 2 commands to add AWS EC2 hosting connection:

$hyp= New-Item -Path xdhyp:Connections -AdminAddress “localhost” -Name “AWSEC2” -ConnectionType “AWS” -HypervisorAddress @(“https://<AWS_URL>”) -UserName “APIkey” -Password “Secret key” -Metadata @{ “Citrix_MachineManagement_Options” = $options } -Persist

New-BrokerHypervisorConnection -HypHypervisorConnectionUid $hyp.HypervisorConnectionUid

Note: Replace <AWS_URL> with your own one.

4. Launch Citrix Studio and check hosting connect to verify whether AWS EC2 site has been generated.

Related:

  • No Related Posts

XenDesktop VDA Installation – Optional Components

The default Virtual Delivery Agent (VDA) software (Desktop OS) installation includes several optional components that some customers might not require depending on their specific use cases. This article provides instructions for excluding one or more of these optional components using command line, for example – Personal vDisk, Citrix User Profile Manager.

Requirements

Basic MSI installation scripting knowledge.

Background

Certain customer use cases might not require several optional components included with the default VDA software installation. For example, installing/upgrading the VDA software on virtual machine images not managed by Machine Creation Services will not require the Personal vDisk. Similarly, some customers might not require Citrix User Profile Management.

Refer to Citrix Documentation – Command line options for installing a VDA for more information.

Related:

  • No Related Posts

“TerminatingError: Error retrieving item from path” while using PowerShell code when creating Machine Catalogs for MCS in Azure

PowerShell cmd let “$provScheme” fails with following error while creating MCS catalog on Azure using Citrix blog with Narrow Scope Service Principal:
https://www.citrix.com/blogs/2016/11/09/azure-role-based-access-control-in-xenapp-xendesktop/

PS C:> $provScheme


TaskId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Active : False

Host : Server name

DateStarted : mm/dd/yyyy hr:mm:ss AM/PM

Metadata : {}

Type : NewProvisioningScheme

Status : Finished

CurrentOperation :

TaskExpectedCompletion :

LastUpdateTime : mm/dd/yyyy hr:mm:ss AM/PM

ActiveElapsedTime : 1

DateFinished : mm/dd/yyyy hr:mm:ss AM/PM

TerminatingError : Error retrieving item from path /IMAGE-resource-group.resourcegroup/imagestorage.storageaccount/images/IMAGE-name.vhd.vhd Not appended with a valid AzureInvetoryType.

Parameter name: fullPath

Actual value was IMAGE-resource-group.resourcegroupimagestorage.storageaccountimages.container.

Storage : {}

WorkflowStatus : Terminated

You may see following exception in Powershell:

“Invalid provisioning scheme”

Citrix Studio would show following error:

User-added image

User-added image

Application event log in Delivery Controller has following event logged:

Log Name: Application

Source: Citrix Machine Creation Service

Date: mm/dd/yyyy hr:mm:ss AM/PM

Event ID: 2007

Task Category: None

Level: Error

Keywords:

User: NETWORK SERVICE

Computer: <FQDN ServerName>

Description:

Provisioning scheme creation workflow operation failed : System.InvalidOperationException: UnknownError in Create ProvScheme, Get snapshot {0} —> PluginUtilities.Exceptions.WrappedPluginException: Error retrieving item from path /IMAGE-resource-group.resourcegroup/imagestorage.storageaccount/images/image-name.vhd.vhd —> PluginUtilities.Exceptions.WrappedPluginException: Not appended with a valid AzureInvetoryType.

Parameter name: fullPath

Actual value was image-resource-group.resourcegroupimagestorage.storageaccountimages.container.

Related:

  • No Related Posts

Citrix Workspace app for Mac and Windows OS fails with “cannot connect to the server” from the internet when connected externally

We observed that removing the response-rewrite policies made it possible to login with LDAP-only in Receiver.

However, we needed two-factor auth and thus had to bind the policies.

With response-rewrite policy bound (the one setting header “X-Citrix-AM-GatewayAuthType” = SMS).

Binding the policy setting “PWDCount=0”, made the Receiver fail.

Entrust – SMS Passcode reported back that if Netscaler version is 12.x, the policy must be replaced with this:

add rewrite policy RWP-RES-REMOVE_2ND_PASSWORD “HTTP.REQ.URL.PATH_AND_QUERY.SET_TEXT_MODE(IGNORECASE).EQ(“/logon/LogonPoint/index.html”)” RWA-RES- REMOVE_2ND_PASSWORD

and a corresponding action:

add rewrite action RWA-RES-REMOVE_2ND_PASSWORD replace_all “HTTP.RES.BODY(99999)” “”\r\n”+n”<style type=\”text/css\”>\r\n”+n”[for=\”passwd1\”] { display: none;}\r\n”+n”#passwd1 { display: none; }\r\n”+n”</style>\r\n”+n”\r\n”+n”</body>\r\n”+n”</html>\r\n”” -search “text(“</body>n</html>”)”

Related:

  • No Related Posts

“Unable to connect to the server. Contact your system administrator with the following error” When Launching Desktop

Adaptive transport is a new data transport mechanism for XenApp and XenDesktop and available in Citrix policies.

When set to Preferred, data transport over EDT is used as primary and fallback to TCP. By default, adaptive transport is disabled (Off) and TCP is always used. For testing purposes, you can set Diagnostic mode, in which case only EDT is used, and fallback to TCP is disabled.

First Test with policy set to Preferred. [No UDP Ports are opened]

  1. Launch the Desktop.
  2. From command prompt browse to “C:Program Files (x86)CitrixSystem32”
  3. Run ‘CtxSession’


You can see that TCP is being used with CGP (Session Reliability) and Session Reliability encapsulates the ICA protocol.

User-added image

Run CtxSession /v for a verbose output. Here you can see the port 2598 being used on the VDA.

User-added image

Now set the policy to ‘Diagnostic mode’.

Ensure UDP 1494 and 2598 ports open on the VDA I connect back to the Citrix desktop, run CtxSession /v and receive confirmation that we are now using UDP 2598. This means that HDX Enlightened Data Transport is being used with Session Reliability. You can also check Director and note the protocol will be set as UDP.

User-added image

Related:

  • No Related Posts

Error: “”Components is Invalid” When Editing Templates in RightSignature 4 (RS4)

Software Solution Disclaimer

This package contains a software solution that has been replaced by a more recent version available for download from the Citrix support website (support.citrix.com). It is provided merely for your convenience. Citrix recommends applying the most up-to-date version of the software, which addresses the fix or enhancement being targeted. Later versions of the release may include multiple changes that address different areas including security vulnerabilities, code fixes, and enhancements. Installation of this software should only be performed on test or developmental environments. This software is not supported and is provided “AS IS.” You are solely responsible for your selection and use of the software. Any reported issues will require the most current revision of the software (http://www.citrix.com/English/SS/supportThird.asp?slID=5107&tlID=1861652). Please visit our security site for additional security notices and information (support.citrix.com/securitybulletins ).

CITRIX MAKES NO REPRESENTATIONS OR WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE WITH RESPECT TO THE PROVIDED SOFTWARE SOLUTION. THE SOFTWARE SOLUTIONS ARE DELIVERED ON AN “AS IS” BASIS WITH NO SUPPORT. YOU SHALL HAVE THE SOLE RESPONSIBILITY FOR ADEQUATE PROTECTION AND BACK-UP OF ANY DATA USED IN CONNECTION WITH THE SOFTWARE SOLUTION. IN NO EVENT SHALL CITRIX BE LIABLE FOR (i) SPECIAL, INDIRECT, DIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES, OR (ii) ANY OTHER CLAIM, DEMAND OR DAMAGES WHATSOEVER RESULTING FROM OR ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE SOLUTION, WHETHER AN ACTION IN CONTRACT OR TORT, INCLUDING NEGLIGENCE, OR OTHERWISE.

Related:

  • No Related Posts

Citrix Files Drive Unavailable

Reconnect the Drive

1. Click the Citrix Files menu bar icon

2. Click Reconnect


User-added image

Relaunch the App

You may need to relaunch Citrix Files app in case the app experiences an issue with mounting

1. Close any files that may be open in Citrix Files

(Ex: You have opened a Word document in Citrix Files)

2. Click on the Citrix Files menu bar icon

3. Click on (…)

4. Select Quit

5. Open Citrix Files app in your Applications folder


Reinstall Citrix Files

Citrix Files installs a kernel extension or kext to mount the drive.

1. Click the Citrix Files menu bar icon

2. Click on (…)

3. Select Preferences

4. Click Uninstall and confirm

5. Download and install Citrix Files again

Related:

CitrixBrokerService event 1152 after importing additional license file

Please check if following messages are outputted by Citrix Broker Service after above error/warining:

EventID 1150

Message:The Citrix Broker Service successfully contacted the license server ‘xxxxxxxx’.

​EventID 1156

Message:The Citrix Broker Service is successfully communicating with the license server ‘xxxxxxxx’. This controller is no longer in an emergency licensing grace period.

If yes, that means Citrix Broker Service successfully communicating with license server, and above error/warining can be safely ignored, no action needed.

Related:

  • No Related Posts