Priming a Non-persistent Windows Image using an Autologon Process with an Auto Logoff Timer

Several years ago, and inspired by an article written by George Spiers to reduce login times, where “the second logon is quicker”, together with some code from Maurice Daly, I created a methodology and scripts that is designed to Autologon a non-persistent Session Host (both VDI and RDS), and then log it off again before another script will Start the Citrix Desktop Service (BrokerAgent).

It has been working flawlessly for years. However, I was never 100% happy with it because the process was using a domain (service) account for the Autologon process. The main challenge here was trying to change the password on a regular basis to stay compliant when managing multiple images. You cannot realistically do it without an outage. And in a 24×7 environment, it becomes difficult and onerous. I also felt that using a domain account can be “heavy” during a boot storm as you need to ensure you are excluding this account from profile management and policies where possible. Sometimes that is easier said than done. There is a level of risk here, as someone can easily make a change that will cause issues. The ability to roll the password and stay compliant was my biggest concern and where I got stuck for quite some time.

Read more

The Citrix Virtual Apps and Desktops & Desktops as a Service Health Check Script on Steroids

UPDATE: Version 1.5.9 released on 3rd March 2026. See below for all the details.

Since November 2014 many of us have been using the amazing Sacha Thomet’s XenApp and XenDesktop Health Check Script. I’ve made my own modifications to it over the years, but never contributed and shared anything publicly until June 2025. My motivation is to give the community some amazing visibility of their Citrix environments that they’ve never had before. I took the last release from Sacha, which was the February 2022 update, together with some modules I’d previously written, and overhauled the whole process from top to bottom, and wrote even more modules. Sacha has kindly committed my pull requests to his GitHub repository, which officially adds me as Contributor!

CVAD & DaaS Health Check Script on Steroids

Read more