Re: Stop Password Expiration vía command-line



Hi Aleco,

Looks like NET.EXE doesn't support this option. If you're a domain admin,
check the following links:

JSI Tip 9625. How can a batch set a user's UserAccountControl attribute for
'Password never expires' on or off?:
http://www.jsifaq.com/SF/Tips/Tip.aspx?id=9625
http://www.google.com/search?q=ADS_UF_DONT_EXPIRE_PASSWD

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Aleco" <spiroom@xxxxxxxxx> wrote in message
news:rpq8l21cichr8sfd9r1slr8dhh620rtq76@xxxxxxxxxx

What's the command / option / flag to stop password expiration when we
create a new user account via command-line. Or how to do this with
scripts (vbs).

Thanks in advance.


.



Relevant Pages

  • Re: Stop Password Expiration vía command-line
    ... Very useful links. ... How can a batch set a user's UserAccountControl attribute ... What's the command / option / flag to stop password expiration when we ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: useraccountcontrol not set when passwd expires
    ... AD uses the pwdLastSet to determine the password expiration, ... > "useraccountcontrol" values to determine the state of a users password. ... > The problem we are seeing is that when a users password expires the ...
    (microsoft.public.windows.server.active_directory)
  • Re: RE: Net user add & password expiration
    ... In the second command I obtain that the option /pwnexp does not exist? ... "Jerold Schulman" wrote: ... to add a user locally with the password expiration to never and no possiblity ... This command works on windows 2000 and NT but not on windows 2003. ...
    (microsoft.public.windows.server.general)
  • Password expiration dates
    ... I use the passwd -sa command to get a list of the accounts, ... they have a password set or are locked, ... Sometimes when I execute this command, ... have to change their password at next logon (if password expiration is ...
    (comp.sys.sgi.admin)
  • Re: Account expiration and creation dates
    ... I will assume password expiration. ... ADFIND can get the info but instead of giving you when the account will expire it will give you when the password was set ... I have found several command line utilities; dsget and the tools at joeware.net that can provide the expiration date but only for a specific user if given. ... Maybe I missed something with these tools or didn’t properly use them – if this is the case if someone could let me know what the proper syntax would be that would be great. ...
    (microsoft.public.windows.server.active_directory)