main

Citrix

Install Citrix VDA using a Batch File

12714_citrix.jpg?fit=768%2C432

The guide below applies to installing components on machines with Windows operating systems.

In order to compile a script for the VDA install you will need your Xenapp Media and you will need to copy the contents to an accessible location, I stored mine on a network share.

Once your Files have finished copying, navigate to the folder and open this location:  “\x64\XenDesktop Setup” Here is where you will save your script.

Open Notepad and copy and paste the script below:

"%~dp0XenDesktopVdaSetup.exe" /QUIET /noreboot /components VDA /controllers vpvdi-xdc1-prod,vpvdi-xdc2-prod,drvdi-xdc1-prod,drvdi-xdc2-prod

The above command installs the VDA on a client machine without rebooting it, you can also specify your Controllers here too. I have highlighted where you will need to make your amendments for this. The “%~dp0” variable when referenced within a Windows batch file will expand to the drive letter and path of that batch file.

Save the Script as “Install.BAT” in the “\x64\XenDesktop Setup” folder,

****UPDATED****

You will also need to amend a registry key to register the Client with the Controller.

Open another notepad document and paste the following:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\VirtualDesktopAgent]
"ListofDDcs"="<SERVERNAME> <SERVERNAME> <SERVERNAME> <SERVERNAME>"

 

Replace <SERVERNAME> with your server names, include the spaces and save the notepad document as “ListofDDCS.reg”

You will also need to add another line to your Install.BAT file, it should look like this:

"%~dp0XenDesktopVdaSetup.exe" /QUIET /noreboot /components VDA /controllers vpvdi-xdc1-prod,vpvdi-xdc2-prod,drvdi-xdc1-prod,drvdi-xdc2-prod
 
regedit /s "%~dp0ListofDDCS.reg"

Hope this helps!

 

 

Citrix

Citrix Xenapp Install – Network-related or instance-specific error.

photo.jpg?fit=768%2C768

While I was building a test lab for Xenapp 7 I built a separate server to host the database, license server, and the Web interface. However while i was configuring my Xenapp Session Hosts to connect to the Database I was greeted with the error:

The test failed for the following reason: Network-related or instance-specific error. Check to see if the Database server name needs an SQL instance name as well

When using SQL Express 2012 for some reason it defaults the SQL port to a dynamic value which changes all the time. We need to set this value to a static value of 1433.

To do this login to your SQL 2012 Express server and then open SQL Server Configuration Manager.

Once in there branch out SQL Server Network Configuration. Under there you will see the one for your SQL instance. My instance is called SQLEXPRESS. Left click on it and then on the right you will see Shared Memory, Named Pipes, TCP/IP. Enable them all by right clicking on them and then selecting enable. Now right click on TCP-IP and click properties.

Click on the IP Addresses tab. Here you will see under TCP Port no value.

This means that its dynamic. Enter a value of 1433 in there and then click ok.

Restart the SQL Instance Service now and try again. All should be well.

 

Ref: https://www.blackforce.co.uk/2014/01/22/citrix-xenapp-install-network-related-or-instance-specific-error

Citrix

What Is My Citrix License Administration Console Password??

photo.jpg?fit=768%2C768

The login details to the License administration console are tucked away in a .xml file on your system, this can be modified to allow you to login and create your own login details.

See the steps below:

  1. Open the “server.xml” file in C:\Program Files\Citrix\Licensing\LS\conf. If on Win2k8 you will need to open your editor as an admin.
  2. Find the entry that looks something like this:

    <user firstName=”System” id=”admin” lastName=”Administrator” password=”(ENC-01)UaFz17cJ2oNQ+LkskjkzUyVV5ZcmaoJCDCiuiusbB6zk2P0uR” passwordExpired=”false” privileges=”admin”/>

  3. Erase the contents between the double quotes after “password=”
  4. Enter a plaintext password so it looks like this: password=”test”
  5. Change the passwordExpired value to be “true”
  6. Save the server.xml file.
  7. Restart the licensing services. I also closed and re-opened the LAC but this may not be necessary.
  8. Log into the LAC using user name “admin” and the password you set.
  9. You will be prompted to change your password. Do it. By doing it, the new password will be encrypted in the server.xml file.
  10. To check that everything is working as planned, re-open the server.xml to check that the password is now encrypted.

Citrix

Importing Citrix License Files

photo.jpg?fit=768%2C768

To obtain your license you will need to login to Citrix and purchase one or generate a free 30 day trial license.

A startup license is imported during the license server installation to allow Citrix products to communicate with the license server.

  1. After generating and downloading your license file, copy the file to the computer hosting the license server and console. The default location for storing the license file is C:\Program Files\Citrix\Licensing\MyFiles on a 32-bit computer, C:\Program Files (x86)\Citrix\Licensing\MyFiles on a 64-bit computer, and /opt/citrix/licensing/myfiles for License Server VPX.
    Tip: Ensure that the license file retains the “.lic” file extension. Some copy processes do not recognize a file type for that extension and add a “.txt” file extension during the copy. License files with the wrong file extension cannot be imported.
  2. For Windows: Start the License Administration Console from the programs menu: Citrix >License Administration Console.

    For License Server VPX and remote systems: Open a web browser and go to http://License Server Name:webport.

  3. Start the console and click Administration. 
  4. Log on and click the Vendor Daemon Configuration tab. 
  5. Click Import License. 
  6. Browse to the license file. 
  7. If you copied the file directly to the myfiles directory, or if the file has the same name as an existing one, select Overwrite License File on License Server. 
  8. Click Import LicenseThe import process copies the file from its existing location into the MyFiles directory where it can be read by the license server.
  9. Click Administer in the Citrix vendor daemon line.
  10. Click Reread License Files to allow the license server to recognize the new file.

    Users can begin using these licenses as soon as the licenses are read by the license server.