I do have the proper permissions, It's kinda odd because because every once in a while
it will report properly on one DC but most often it doesn't.
To: "NT 2000 Discussions"
<[EMAIL PROTECTED]>
cc: (bcc: Shaun
Gillissen/ANR/MS/PHILIPS)
Subject: RE:
objUser.IsAccountLocked
"Alexander Kha Do" Classification:
<[EMAIL PROTECTED]>
Sent by:
[EMAIL PROTECTED]
.com
03/27/2003 06:35 PM
Please respond to "NT 2000
Discussions"
Make sure you have permissions over the accounts in Active Directory. By default,
Authenticated Users do not have permissions to "Read Account Restrictions." You need
Account Operator rights to run a script like this.
~Alex
-----Original Message-----
From: Pukanecz, Todd [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 6:14 AM
To: NT 2000 Discussions
Subject: RE: objUser.IsAccountLocked
I've successfully used that method although only in IF-THEN statements. Have you tried
echoing a message that depends on the value returned?
_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_
Todd Pukanecz, MCSE, GCWN
Virginia Tech, Ag Human and Natural Resources IT
Blacksburg, Virginia
"There are two distinct classes of men...those who pay taxes and those who receive and
live upon taxes."
-- Thomas Paine
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 5:19 PM
> To: NT 2000 Discussions
> Subject: objUser.IsAccountLocked
>
>
> Hello all I'm using this object in a script but it seems to
> be reporting
> wrong. I have an account that I have purposely locked out
> and whenever I
> do a :
> wscript.echo objUser.IsAccountLocked
>
> it comes up and says False anyone else have this problem out there?
>
>
>
>
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to %%email.unsub%%
>
------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%
------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%
------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]