davewhy
asked on
KIX script: map drive based on OU membership
I am trying to convert our current vbs login script to kix script.
The script maps a drive based on OU membership, eg:
========================== =====
select case LCase (oParent.name)
case "ou=execs"
oNet.RemoveNetworkDrive "S:"
oNet.MapNetworkDrive "S:", "\\CORPFS01\Execs$"
end select
========================== ====
I want to do the same thing with KIX, but am having no luck in getting the IF inOU("Execs") variable working.
Is there a simple way to do this?
Mapping drives via group memberships is working fine by using
IF InGroup("groupname") =1
use f: \\corpfs01\fileshare
ENDIF
What am I missing???????
The script maps a drive based on OU membership, eg:
==========================
select case LCase (oParent.name)
case "ou=execs"
oNet.RemoveNetworkDrive "S:"
oNet.MapNetworkDrive "S:", "\\CORPFS01\Execs$"
end select
==========================
I want to do the same thing with KIX, but am having no luck in getting the IF inOU("Execs") variable working.
Is there a simple way to do this?
Mapping drives via group memberships is working fine by using
IF InGroup("groupname") =1
use f: \\corpfs01\fileshare
ENDIF
What am I missing???????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Isorg, the InContainer() and dependent TranslateName() UDF's worked a treat. I have included both in a seperate UDF (.kxf) file, called them from the script, and got the result I wanted. Brilliant.
ASKER