We have a mix of XP, Windows 7 and Citrix. I'm trying to capture what the OS is so we can run specific things against desktop OS and server OS for Citrix

. I thought I had this little bit of code working, but after working with it some more turns out I don't and I'm not seeing where I went wrong. On Server 2008 it still runs the commands that I want to run against XP or Windows 7. The @ProductType does return Windows Serve 2008 R2 when ran.

 Code:
Select

	Case @PRODUCTTYPE = "Windows XP Professional" Or "Windows XP Professional Tablet PC" Or "Windows 7 Professional Edition"
		Stuff For PCs Only

	Case @PRODUCTTYPE = "Windows Server 2003" Or "Windows Server 2003 R2" Or "Windows Server 2008" Or "Windows Server 2008 (R2)"
		Stuff for Servers Only
		
EndSelect


Hopefully this is dumb and someone can point it out. Feel free to make fun of me freely