Quote:
Is there a wildcard I can use with the wksta command? an someone please provide me with the proper syntax?


No, KiXtart does not have any pattern matching built-in.

InStr() can be used as a "match anywhere" substitute as in the code provided above, but if you want to check for a prefix you should anchor to the front of the string:
 Code:
Select
Case Instr(@WKSTA,"ps12")=1
     ; map drives for ps12
Case Instr(@WKSTA,"ps13")=1
     ; map drives for ps13
Case 1
     ; Default set of mapped drives for anything else
EndSelect


Edited by Richard H. (2010-07-27 08:49 AM)