Originally Posted By: apronk
As far as I know, you can't use "OR" when using Select-Case.
So try to make a specific case for each OS.


That's not quite right, *any* expression that can be evaluated as true/false is acceptable. You may be thinking of VB which mandates a single value in each CASE to compare against an expression declared at the start of the construct.

The expression used in this script is in a bad format and won't work as expected regardless of where it us used.

This is wrong:
 Code:
Case @PRODUCTTYPE = "Windows XP Professional" Or "Windows XP Professional Tablet PC" Or "Windows 7 Enterprise Edition"


This will work:
 Code:
Case @PRODUCTTYPE = "Windows XP Professional" Or @PRODUCTTYPE = "Windows XP Professional Tablet PC" Or @PRODUCTTYPE = "Windows 7 Enterprise Edition"