Quote:

I have been testing this script (I used a slightly modified version of Richards) and for some reason it is still running on Citrix boxes. (Both Windows 2000 and 2003 server on PS4) Any ideas? I shouldn't have to use IF @WKSTA = CitrixServerName should I?




No, but you do have to use the macros correctly

@PRODUCTSUITE returns a number which is the sum of all the possible values. For example a "DataCenter" (128) edition of "Terminal Server" (16) would return (128+16)=144 - if there is any such thing.

The check that you need to be making is:
Code:
If 16 & @PRODUCTSUITE "Terminal Server" EndIf



Personally I check %WINSTATIONNAME%, as I perform different processing depending on whether the connection is "RDP-xxx" (terminal server) or "ICA-xxx" (Citrix)