Hello, I am trying to do something in KIX that I think will be very simple for you guys, but I am stumped.
Basically, I am trying to compare the OU that a user is in to the OU that the PC he is logging in to is in. The basic premise is that I am trying to create a single logon script that caters to 5 different physical locations. If a user logs in, the script will hopefully check what OU he is in, and what OU the computer resides in. If the user is logging in to a PC from his own OU, then he will run his script, if he logs into a PC from another location, it will run the local script.
Does that make sense to anyone? I did some searching and I was able to find a script that will query AD to determine what OU the computer is in, but I need a little more help with the mechanics of it all.
Short Version:
Check User's OU
Check Computer's OU
Compare
if User's OU = Computer's OU then XYZ
If User's OU |= Computer's OU then ABC
If anyone can help me out with this or point me in the right direction, I would be really appreciate it.
Thanks.
_________________________
--
oobnuker - .KIX hack - no really.