Powershell One-liner of the Day: XenDesktop Users that have not Logged on in 60 Days or More

Just a simple one-liner to get a listing of all users that have not logged into their XD desktop in 60 days or more – this is for static desktops or XD PvD. Requires: XenDesktop PowerShell SDK (studio commandlets) AD Powershell commandlets [code language=”powershell”] asnp Citrix* Get-BrokerDesktop -MaxRecordCount 2000 | Where {((Get-Date) – $_.LastConnectionTime).Days -gt 60} | sort LastConnectionTime | Select DNSName,LastConnectionTime,@{Name="UserName";Expression={$UserN = $_.AssociatedUserNames.Replace("DOMAINHERE\",""); $UserObj = Get-ADUser -Filter {Name -eq $UserN}; "$($UserObj.GivenName) $($UserObj.Surname)"}} [/code] Use … Read more…

Web Receiver Browser Integration Trouble Again

StoreFront Web Receiver is having some browser integration pain – and this time, it’s with Chrome. The symptoms are as follows: With the April update that disables NPAPI by default Chrome users will always be prompted to install Citrix Receiver Chrome users may be prompted to save or open .ICA files Chrome users may be pushed to the HTML5 receiver if it is enabled – if not, the application\desktop launch will fail The official Citrix … Read more…

Optimizing Provisioning Services with Powershell

When you’re deploying lots of systems, anything that can make the deployment more efficient is always welcome – so basically, any automation is always welcome. These scripts I use on both PVS servers and targets – the first script disables all network offloads on the VMXNET3 adapter and the second sets up the persistent data on the writecache volume (obviously the 2nd is only for targets). Here’s the first – this is specific to PVS … Read more…

Citrix XenApp 6.5 Upgrade to 7 Uninstall Order

If you are looking to upgrade a 2008R2 XenApp 6.5 server to XenApp\XenDesktop 7.x, you will more than likely be uninstalling the 6.5 bits prior to installing the 7.x VDA. Currently, project Serenity is still in beta and appears to migrate mostly datastore objects and settings – you still need to manually migrate the user servers. Per this Citrix article (which is a bit outdated) the only noted procedure is to uninstall hotfixes first then … Read more…

Citrix Folder Redirection not Working in Internet Explorer

This post should really be titled “Folder redirection working great and only showing endpoint drives and NOT showing XenDesktop files in Internet Explorer”. But in all actuality, folder redirection wasn’t involved at all. This issue was presented as only endpoint drives and folders are showing when the user browses a File\Open dialog from an IE page. This is a XenDesktop environment, so the user was expecting to have some mapped drives and content in their … Read more…

XenApp 6.5 Users Can’t Logon After Logon Disable

During an after hours project, I disabled logons to a few servers in a XenApp 6.5 farm, waited for the users to log off, and thought nothing of it. I then shut the VMs down, completed the maintenance, and powered the VMs back on…only to find that no one was logging on. As an administrator, I had no issue getting logged on, but users were receiving a “The requested session is not available…” type error … Read more…

Load Balancing Remote Desktop Gateway with Citrix NetScaler Part 2

In Part 1 of this post, we setup a simple content switching vServer to front our Remote Desktop Gateway server. It accomplished two things:   Allowed Remote Desktop connections using the Windows RDP client with ‘Connect from Anywhere’ set to the RDG vServer address Allowed applications to be launched from the RDWeb web portal The vServer configuration is not quite complete. You may notice that connections from mobile devices don’t work using the RD client and … Read more…

XenDeskop and PVS: You Must Restart Your Computer…

Most XenDesktop deployments are not rolled out all at once – they are usually done in phases: demo, pilot, test, initial, major, and completion. And more often then not, these phases span months if not years depending on the size of the project. Or sometimes hardware is purchased at different times and happens to be before and after a release of new processor tech. The below error can be a bit hard to track down: … Read more…

Load Balancing Remote Desktop Gateway with Citrix NetScaler

It may seem a bit ironic to use a Citrix NetScaler to load balance plain vanilla RDS, but the NetScaler wasn’t always a Citrix product and it certainly has a thousand more uses than just an Access Gateway appliance. So today we’ll be using it to load balance and content switch our Remote Desktop Gateway server(s). First, I’ll assume that you’ve already got RD Gateway up and working with a publicly trusted cert. Next, we … Read more…

The Provisioning Server WriteCache Delete “Problem”

Prior to PVS 7, the most common WriteCache methods were Cache on device HDD and the much better performing Cache in device RAM. Both of these legacy cache methods had some positives and negatives: Cache on device HDD:   Performance less than or equal to the underlying storage. For physical targets, this could be physical disks, but more commonly, for VMs, this was whatever storage contained the virtual disk. The amount of storage available for caching … Read more…