How about this...

****************************
Option Explicit

Dim objUser
Dim objAccountDisabled

Set objUser = GetObject("LDAP://CN=User,DC=Domain,DC=MSFT";)

If objUser.AccountDisabled = True Then
  objAccountDisabled = "Yes"
  Else objAccountDisabled = "No"
End If

WScript.Echo objAccountDisabled
******************************

-----Original Message-----
From: pio eqbal [mailto:eqbalpio@;yahoo.com] 
Sent: Wednesday, November 06, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] which attribute to use for disabled account

Hi,

is there an attribute in the user class, that I can
use in the LDAP query to find if the user account is
disabled? If so what is the name of the attribute?

Thanks
Eqbal


__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to