Link to home
Start Free TrialLog in
Avatar of davewhy
davewhyFlag for United Kingdom of Great Britain and Northern Ireland

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???????
ASKER CERTIFIED SOLUTION
Avatar of Isorg
Isorg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davewhy

ASKER

Thankyou Isorg.  I shall setup the UDF and try to call from the script.  Any tips?

Avatar of davewhy

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.