I was wondering if anyone knows the script i need for a case statement depending on what OU a 'machine' is in, in my AD.
I have a VBS script that maps the printer but i need a new script for every printer the company has. So what i want is a script to do the following:
Ask what OU the local machine is in
Case in OU 'Group 1' map Printer1
Case in OU 'Group 2' map printer 2
....and so on.
So what i really need is the case statement and details on how it would identify what OU a machie is in.
Thanks very much.