Hi Guys

I have converted it to use LDAP connection instaed of WinNT.

So simple when you get some help :-)

Thanks

code:
  
$objUser = GetObject("LDAP://" +$TranslateUserName[0])
For Each $objGroup in $objUser.Groups
$objGroup.Remove ($objUser.AdsPath)
Next



[ 15. May 2003, 16:08: Message edited by: Richard Farthing ]