Export and Import user assignments from one Citrix RemotePC to another

$srcRemotePC = ‘DomainName\65TELW19’$destRemotePC = ‘DomainName\65TELW20’Get-BrokerUser -PrivateDesktopUid (get-BrokerPrivateDesktop -MachineName $srcRemotePC ).Uid | | %{ if($_.Upn -ne “”) {Add-BrokerUser -Machine $destRemotePC -Name $_.Upn}}

Automate Citrix Session Launch for Load tests or health probing

Requirements Citrix Workspace app Version 1808 for Windows or later. Storefront Store needs to have http auth module enabled. Step 1: Retrieve Resource Name of the app/desktop you would like to automate “C:\Program Files (x86)\Citrix\ICA Client\AuthManager\storebrowse.exe” -U <username> -P <password> -D <domain> -M 0x2000 -E “https://<storefrontserver>/Citrix/<storename>/discovery” First column of the output would have the resource …

Citrix ADC Load Balance Config for CyberArk PSM

At the time of this post, CyberArk does not have documentation on load balancing Privileged Session Management (PSM) traffic for Citrix ADC, though they provide an example config for F5, it doesn’t translate to Citrix. Hopefully, this would help someone that is trying to do this for ADC. Couple of things to call out, the …

Add Disclaimer to Citrix ADC RfWebUI theme easily.

RfWebUI in ADC is a mobile-friendly theme, adapts fluidly to different screen layouts, and supports Citrix Receiver Extension APIs making customizing a lot easier. Moreover this is a supported approach from Citrix based on their nfactor extensibility framework. The two files we are interested in adding a disclaimer to the login page are scripts.js and …

Citrix ADC – Upgrade in HA Environment

Steps from bottom to top Instance Command new seconday set HA node -haSync ENABLED  new primary set HA node -haSync ENABLED  new seconday Rebooting Citrix ADC new seconday Verifying task completion new seconday Installing Citrix ADC using build-12.1-60.19_nc_64.tgz new seconday tar xvfz build-12.1-60.19_nc_64.tgz new seconday cd /var/nsinstall new seconday shell new primary forcefailover -f seconday Rebooting Citrix ADC seconday Verifying task completion seconday Installing Citrix ADC using build-12.1-60.19_nc_64.tgz seconday tar xvfz build-12.1-60.19_nc_64.tgz seconday cd /var/nsinstall seconday shell primary set HA node -haSync DISABLED  seconday set HA node -haSync DISABLED  primary save config primary Uploading file build-12.1-60.19_nc_64.tgz to Citrix ADC seconday …

PowerShell code to remove DriveLetters for “System Reserved”Partition and CD-ROM

Depending on how the OS is installed, with Citrix PVS capture you may end up with “System Reserved” partition consuming a drive letter, Code below could be used during a machine startup script to provide a clean user experience. Also, included CD-ROM which I used for PVS BootISO and it is not really needed once …

Netscaler Rewrite complete HTTP Request Body before sending to the backend server

You may run into cases where the sending application has one set of message standards and the receiving service has its own standards. One such case that I recently ran into with an app trying to initiate a call request via vendor-neutral open standards to Cisco Unified communication system. Obviously, Cisco expects the API request …

Extract ICA client public IP from ADM/MAS HDX INSIGHT data

If you tasked to find the public IP for all your ICA clients you will be surprised to know the Citrix monitoring/ODATA in virtual apps and desktops do not have this data. If you have Citrix ADM/MAS in place and your ADC/Netscaler is on Premium/Platinum license, you are in luck and this could be your …

WordPress Appliance - Powered by TurnKey Linux