Posts

Approving Quarantined ActiveSync Devices with Exchange Management Shell

Get-ActiveSyncDevice -filter {deviceaccessstate -eq 'quarantined'} | select identity, deviceid | fl

clear App-V Cache

Set-ExecutionPolicy RemoteSigned –Force Import-Module AppvClient Get-AppvClientPackage –All | Remove-AppvClientPackage Set-ExecutionPolicy Default –Force

Citrix useful commands

Enable Citrix powershell snap-ins for XenDesktop/XenApp 7.6: Add-PSSnapin Citrix.*.Admin.V* Enable Citrix powershell snap-ins for XenApp 6.5: Add-PSSnapIn citrix.xenapp.commands Add-PSSnapIn citrix.common.Commands Add-PSSnapIn citrix.common.groupPolicy To get a listing of all your XenApp 6.5 servers: get-xaserver | select servername > c:\temp\XenApp_VM_list.txt To get a listing of XenDesktop logged in users: get-brokersession | select UserName > c:\temp\logged_in_users.txt To get a listing of ALL XenDesktop/XenApp 7.6 VMs: get-brokermachine -maxrecordcount 2000 | select machinename > c:\temp\VM_list.txt To send a reboot notification message to a specific desktop group on XenDesktop/XenApp 7.6: Add-PSSnapin citrix* $sessions = Get-BrokerSession -MaxRecordCount 5000 | Where {$_.desktopgroupname -match "Virtual Desktop Group 1"} Send-BrokerSessionMessage $sessions -MessageStyle "Information" -Title "REMINDER: Virtual Desktop Reboot @

improve performance for storefront

To improve performance from a storefront perspective is the ability to maintain a pool of sockets instead of creating a new one each time a new user connects Enable pooled sockets: Open the web.config file under c:\inetpub\wwwroot\citrix\%storename%\ and change pooledSockets to on and do iis reset

“Aw, Snap!” on launch of google chrome in citrix environments

add the following to shortcut of chrome  C:\Program Files (x86)\Google\Chrome\Application\ chrome.exe ” –no-sandbox –disable-infobars –disable-gpu and publish the shortcut through citrix

Disable Power Management completely in Xenapp/Xendesktop

opwn powershell in Studio and run the following Commands Add-PSSnapin *Citrix* Set-BrokerDesktopGroup -Name * -AutomaticPowerOnForAssigned $False Set-BrokerDesktopGroup -Name * -AutomaticPowerOnForAssignedDuringPeak $False Set-BrokerDesktopGroup -Name * -OffPeakBufferSizePercent 0 Set-BrokerDesktopGroup -Name * -PeakBufferSizePercent 0 Set-BrokerDesktopGroup -Name * -ShutdownDesktopsAfterUse $True