Citrix Script to Take Server Offline
As a Citrix Engineer, one of the more heavily used scripts I have in my inventory is my “Server Offline” script. The purpose of this script is to unpublish all applications from a Citrix server (which effectively takes the server offline for user logins). Users who are currently connected to the server will not be affected but no new connections can be made to the server. As the connected users log off, the server empties and you can perform the necessary maintenance to the server.
Another method of taking a server offline is to disable logins to the server. However, this method prevents the administrator from using a published desktop or RDP connection to access the server remotely. In my case, the company I work for has a secure data center with no console access to the server (except for emergencies) and our remote access method to the server is via RDP. Now, I could violate company policy and use a remote console program like VNC, Dameware or PCAnywhere (but I prefer not to do that). Also, I could use the server’s remote access board (but those are so slooowwww…good for emergencies though). The “Server Offline” script allows me to effectively take a server offline and still be able to access the server via RDP or a republished desktop (to which users do not have access). So, on to the script.
Read the entire article here, Citrix Only – Take Server Offline