Page 2 of 2 <12
Topic Options
#87492 - 2002-10-18 04:10 PM Re: Scripting "User cannot change password" option
Sealeopard Offline
KiX Master

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Thanks, Ruud!
There are two types of vessels, submarines and targets.

#87493 - 2005-01-11 12:20 PM Re: Scripting "User cannot change password" option
Joost Offline

Registered: 2005-01-11
Posts: 1
Hi there,

New on the forum! How's everybody doing?

I'm looking for a way to set the "User cannot change password". I can't get the code in this topic to work, but I have something interesting:

You al know the UserAccountControl option. With ADSI edit (Can be found in the support kit) you can view the value(Integer) of the UserAccountControl. With only one value set (Password never expires) the value = 66080. Changing the "User cannot change password option in de AD User and Computers value, the UserAccountControl value doensn't change.

My conclusion is: You can't change the User Cannot Change Password option by setting the UserAccountControl. It must be ACL! Correct me if i'm totaly wrong please...

Anyone more succes?

#87494 - 2005-01-11 05:03 PM Re: Scripting "User cannot change password" option
Howard Bullock Offline
KiX Supporter

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You can set this flag. See my web page for a description of the bits of the flag and what they mean.

Did you read the rest of the this thread? There is posted code that works using the WinNT:// ADSI provider.

UserAccountControl would be used for LDAP and should also work. My guess is that you are not viewing the the same server with ADSIEDIT that you had changed.
Home page:

Page 2 of 2 <12

Moderator:  Shawn, ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Arend_) and 175 anonymous users online.
Newest Members
gkustra, emnipetro, Hirze, thequeen, ameliaryan
17642 Registered Users

Generated in 0.048 seconds in which 0.031 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google: