As per the pvs image wizard process, you install pvs target device setup on a machine and run image wizard to push the OS into a vhd(or vhdx in xa7.7) file. For this you need to reboot your target machine. After reboot at the conversion step, it says creating snapshot, and immediately it throws an error saying, Failed to create snapshot. Upon viewing the log file, i saw a line, which says “Failed to InitializeBackup.
As a part of reboot schedule, which is a inbuilt feature of xenapp 7.6, DC would send message to users before the time we set, and then logoff users from the servers and reboot. Recently I came across a task to send message to users and logoff users from a particular delivery group So, I wrote a powershell script for the same. Details given below:
Copy all the server names in the delivery group to serverslist.
Checkout the script to enable and disable maintenance mode on xenapp 7.6 environment.
Script:
1 2 3 4 5 6 7 8 9 10 11 Function Global:Enable-MaintenanceMode([string]$servername) { Add-PSSnapin citrix* $name = (Get-BrokerSharedDesktop -HostedMachineName $servername).MachineName set-BrokerSharedDesktop $name -InMaintenanceMode $true } Function Global:Disable-MaintenanceMode([string]$servername) { Add-PSSnapin citrix* $name = (Get-BrokerSharedDesktop -HostedMachineName $servername).MachineName set-BrokerSharedDesktop $name -InMaintenanceMode $false } Usage:
Enable-MaintenanceMode -servername SERVER
Disable-MaintenanceMode -servername SERVER
I recently came across a task to check all the unregistered vms in xenapp 7.6. I got the infomation and send email manually. I thought of a script which would do the same and came up with below script:
Script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Add-PSSnapin citrix* $smtpServer = "MAILSERVER.
Problem: One of the user’s contacted me saying he is not able to type the character “P” in his citrix session. Desktop has been published and when typing the password, he got this problem.
Solution: User’s session is still active on the server. Informed user to logoff from all his citrix applications. Cleared cookies in IE. I have manually logged off the sessions which are still there on the server. User logged in again, issue resolved.
Sometimes in user’s pc, already .ica files have been set to open with some other apps by mistake. I recently came across an issue in one of the user’s pc, .ica was set to open with adobe reader. When user logs in to netscaler and clicks any app, it says, adobe reader cant open this file.
I have seen that there is no receiver installed in user’s laptop. Installed it and restarted laptop but still it is going to adobe reader only.
WI has been upgraded to storefront.
Copy and paste in netscaler with storefront process: select the text in your citrix session(ex, excel), press ctrl c, then on the right hand side, click clipboard icon(in your web link only), (see below image, second icon) your selected text will be visible there. click it and press ctrl c. It gives you a message that text copied to device clipboard. Then open notepad or excel in your local system and click ctrl v.
Users logon to their netscaler site, then see list of applications, and if they click on any of the citrix desktops, it throws the below error and it doesnt start the desktop.
Solution:
downloaded receiver cleanup utility from the citrix downloads: http://support.citrix.com/article/CTX137494
The same can be downloaded from HERE
Removed existing citrix receiver using the above utility, installed reciever again manually. It resolved the issue.
AFAIK, there is no direct GUI link to check the license server name so i thought to put a post so that whenever needed, I can quickly check it.
Below are the 4 places where you can find license server name.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\LSName HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\Licensing\MFCM_LSHostName [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Citrix\IMA\Licensing] “LicenseServerHostName”=" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Citrix] “LSName”="" If you want to change the license server name, best way is to open the xenapp server role manager and edit licensing, then change the name, apply and reboot.
If we want to rebuild our PVS server, It might be a very time taking process to uninstall all the components and reinstall them again. If we are working with production enviornment, we must be very careful and check if there are any components which are not properly uninstalled. If not, we again need to go for a fresh OS installation and proceed with pvs server installation. This might be a very frustrating process in case we are working in any test environment.