trying to modify this script
http://social.technet.microsoft.com/...-a1507232e423/
but when I run it I get
Unexpected token '.' in expression or statement.
At C:\Users\administrator.LUNG\desktop\createbatch.ps 1:11 char:25
+ switch ( $user . <<<< Class )
+ CategoryInfo : ParserError: (.:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
Any ideas?
thanks!
Wes