RE: Problems autenticating users in domain

  • From: "cismic" <cismic@xxxxxxx>
  • To: "[ISAserver.org Discussion List]" <isalist@xxxxxxxxxxxxx>
  • Date: Tue, 10 Feb 2004 13:06:50 -0800

Hi Rafa,

Using WMI, it is simple to test to see on a global basis what user accounts
are disabled by
using a script similar to this:

Set objUser = GetObject _
("LDAP://cn=USERNAME,ou=management,dc=YOURDOMAIN/,dc=com";)

If objUser.AccountDisabled = FALSE Then
WScript.echo "The account is enabled."
Else
WScript.echo "The account is disabled."
End If

To unlock the account use something like this:
Set objUser = GetObject _
("LDAP://cn=USERNAME,ou=management,dc=YOURDOMAIN,dc=com";)
objUser.IsAccountLocked = False
objUser.SetInfo


Joseph
----- Original Message ----- 
From: "Rafa" <rafa.serena@xxxxxxxxxxxxxxxx>
To: "[ISAserver.org Discussion List]" <isalist@xxxxxxxxxxxxx>
Sent: Tuesday, February 10, 2004 7:39 AM
Subject: [isalist] RE: Problems autenticating users in domain


> http://www.ISAserver.org
>
> I have already uncheck that box, I supose is another thing but I don't
> know what. Thans for reply i hoping for more help.
>
> ------------------------------------------------------
> List Archives: http://www.webelists.com/cgi/lyris.pl?enter=isalist
> ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp
> ISA Server FAQ: http://www.isaserver.org/pages/larticle.asp?type=FAQ
> ------------------------------------------------------
> Other Internet Software Marketing Sites:
> Leading Network Software Directory: http://www.serverfiles.com
> No.1 Exchange Server Resource Site: http://www.msexchange.org
> Windows Security Resource Site: http://www.windowsecurity.com/
> Network Security Library: http://www.secinf.net/
> Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
> ------------------------------------------------------
> You are currently subscribed to this ISAserver.org Discussion List as:
cismic@xxxxxxx
> To unsubscribe send a blank email to $subst('Email.Unsub')
>


Other related posts: