You have two choices (WinNT:// or LDAP://) provider.

$UserObj = GetObject("WinNT://@Ldomain/@userID,user")

or

$UserObj = GetObject("LDAP://@Ldomain/$ADsPath")

I show you how to get $ADsPath in the script in my previous post above.

{edit} You may have to use LDAP to get extended AD attributes/properties. WinNT:// is quite limited.

[ 21. October 2002, 23:44: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/