Welcome to the board John. This was kind of neat and I thought I might be able to figure it out pretty quickly. So try this and see if it fits your needs. You will need to paste the GetUserDN() UDF - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=188576#Post188576 to the bottom of the script.

 Code:
$user=getuserdn("username")
? $user
if $user
  $objUser=getobject("LDAP://" + $user)
  $Groups = $objUser.GetEx("memberof")
  for each $group in $groups
    $Groupname=GetObject("LDAP://" + $Group).cn
    ? $groupname
    if $groupname="Doctors"
      use x: "\\server\share"
    endif
    if $groupname="Nurses"
      use x: "\\server\share"
    endif
  next
endif




Edited by Allen (2010-05-12 09:28 PM)
_________________________
(... better days ahead)