CTXCliOS is a command-line tool for Citrix Servers to check the type of Operating System that is being run from the Client Machine that is running the Citrix Receiver or Plugin. This utility was written to assist administrators to determine the type of Operating System being run on a Client Machine during a Citrix Session and from this, allow a login script or similar to be customised to run specific commands based on the Client Side Operating System. An example could be that if a user was accessing a Citrix session from an mobile device, then using this utility, the administrator could block specific drive mappings to protect company data. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Thankyou to the CITRIX SDK available from www.citrix.com/cdn Usage: CTXCliOS [/?] /? - Help information The ERRORLEVEL return code shows the Client OS Type. The following are known OS types and their ERRORLEVEL return code Client OS return code (decimal) ============= ===================== Windows 1 EPOC 10 OS/2 11 DOS32 14 Linux 81 Mac 82 iOS 83 Android 84 Blackberry 85 PlayBook 86 Windows Mobile 87 HTML5 257 Java 261 WinCE - HP 7945 WinCE - Wyse 32940 ThinOS - Wyse 32993 See CTXCliOS.TXT for Example Scripts: The following is an example command script: usrlogon.cmd ------------ @ECHO OFF :start CTXCliOS.exe IF ERRORLEVEL 0 goto noOS IF ERRORLEVEL 1 goto winOS IF ERRORLEVEL 82 goto macOS IF ERRORLEVEL 83 goto iOS IF ERRORLEVEL 84 goto androidOS goto noOS :winOS rem Client OS successfully matched to windows echo Client OS is Windows. echo put other commands here for this client. goto end :macOS rem Client OS successfully matched to mac echo Client OS is Mac. echo put other commands here for this client. goto end :iOS rem Client OS successfully matched to iOS echo Client OS is iOS. echo put other commands here for this client. goto end :androidOS rem Client OS successfully matched to android echo Client OS is Android. echo put other commands here for this client. goto end :noOS echo NO CLient OS match. :end The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that CTXCliOS is free of any bugs or errors, however in no way is CTXCliOS to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in CTXCliOS. IN NO EVENT WILL CTRL-ALT-DEL IT CONSULTANCY BE LIABLE TO YOU FOR ANY GENERAL, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT.