The situation: My organization runs many hundred virtual Citrix servers and we're having an issue with users logging in to those servers before our remote printing client, ThinPrint, has a chance to load.
Due to various issues too numerous to list, we have a 48 hour reboot cycle for these servers. At some point after a server has been up for 48 hours, we have logic built into the Citrix XenCenter console to disallow logins on a server and when the servers reach 0 user load they restart. This restart is controlled via a PowerShell script that runs every 15 minutes and checks to make sure the servers have 0 users, and if they do simply runs a shutdown.exe command. When the server comes back up it starts to let users back on, but the ThinPrint services often aren't done loading yet and said user will get an error if they try to print. Through the Citrix Powershell cmdlets I have the ability to disallow or allow logins, and I was thinking of how to implement this in either our existing reboot script or have another script that gets passed the servers that do reboot and then waits until they're up for 5 minutes and sets the allowlogins flag.
Any thoughts on how to best implement this?
T