Doc,

Question for you..

Trying to use the LDAP Method and I keep getting:
quote:

Script error : unknown command !
$pwexpire = $userobj.passwordexpirationdate

If we look at Active Directory Users and computers and have "Advanced Features" turned on.. We look at the object, we see:
quote:

DOMAIN.com/Accounts/Users/Service Account Users/SQL Service Accounts/ServiceSql

So, we make the changes per your suggestion, and refer to - http://cwashington.netreach.net/depo/default.asp?topic=adsifaq

quote:

$userobj = GetObject("LDAP://PDC.DOMAIN.com,ou=Accounts,ou=Users,ou=Service Account Users,ou=SQL Service Accounts,cn=ServiceSql")

Any ideas?

Thanks,

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's