clivecrawdevil
asked on
VBS Organisation Units
Hi there,
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER