Hi. I use a vbscript to create users and
folders from a commandline (like,
NEWUSER username firstname lastname group
firstpasswd )
and I want to be optionally able to set "password
never expires" for a user. (which is appropriate in some situations I
face). I can do this via the GUI
I ran
into this problem and built it into my scripting, but I have not used it
for some time.
Set adsdomainobj =
GetObject("LDAP://ou=test,DC=domainname,DC=com)
Set adsuserobject =
adsdomainobj.Create("user", "cn=JoeUser"& )
adsuserobject.accountexpirationdate =
datetoexpire
adsuserob
Opps I
misread what you wanted. I was reading account expires not password.
Sorry. My response was no help.
-JS
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Matthew
SaundersSent: Wednesday, December 05, 2001 6:10 AMTo:
[EMAIL PROT
If you
wish to set “Password never expires”, use the UserAccountControl attribute. Check
Q285395.
Russell Potter
Directory
Specialist
Directory
Technologies, Infrastructure Technology, H&I
Tel:
+61 8 9491 5196 +61 419 638 738
http://www.dir.telstra.com
Infrastructure
Services