Re: net User command



thanks,
don't suppose you could give me a clue as to how to set a policy e.g. for a
group, then create users for that group such that the group has passwords
which don't expire ... do you?
I am working on a script to install up to 50 user accounts for FTP logon in
and I'm trying to avoid having to visit each user in the user manager and
check the box "Password Never expires" - it's a real drag.
Thanks


"Pegasus (MVP)" wrote:

> From the output of "net help user":
>
> /EXPIRES:{date | NEVER} Causes the account to expire if date is
> set. NEVER sets no time limit on the
> account. An expiration date is in the
> form mm/dd/yy(yy). Months can be a number
> spelled out, or abbreviated with three
> letters. Year can be two or four numbers.
> Use slashes(/) (no spaces) to separate
> parts of the date.
>
> The password expiry date is not a property of each account;
> it is set by the system, according to the policy currently in force.
>
>
> "Alan" <Alan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:C0110E4B-F880-4BE6-B6CB-FBC8364FD7B8@xxxxxxxxxxxxxxxx
> > Jerold,
> > My mistake is thinking that I can somehow set the passwordexpires:never at
> > this command line. But there appears to be no option for that.. is there?
> > expires:never only refers to the account
> > thanks
> >
> > "Jerold Schulman" wrote:
> >
> > > On Thu, 26 Jan 2006 16:29:02 -0800, "Alan"
> <Alan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > > >Why does this command fail to obey the expires, passwordchg and
> passwordreq
> > > >switches on Server2003, and how do I make it obey these switches?
> > > >
> > > >net user newuser mypassword /add /fullname:myfullname /comment:"a
> comment"
> > > >/expires:never /passwordchg:no /passwordreq:yes
> > >
> > >
> > > ????
> > >
> > > It does obey the switches:
> > >
> > > net user newuser mypassword /add /fullname:myfullname /comment:"a
> comment" /expires:never /passwordchg:no /passwordreq:yes
> > > The command completed successfully.
> > >
> > >
> > > C:\>net user newuser
> > > User name newuser
> > > Full Name myfullname
> > > Comment a comment
> > > User's comment
> > > Country code 000 (System Default)
> > > Account active Yes
> > > Account expires Never
> > >
> > > Password last set 01/27/2006 08:49
> > > Password expires 03/11/2006 07:36
> > > Password changeable 01/28/2006 08:49
> > > Password required Yes
> > > User may change password No
> > >
> > > Workstations allowed All
> > > Logon script
> > > User profile
> > > Home directory
> > > Last logon Never
> > >
> > > Logon hours allowed All
> > >
> > > Local Group Memberships *Users
> > > Global Group memberships *None
> > > The command completed successfully.
> > >
> > > Jerold Schulman
> > > Windows Server MVP
> > > JSI, Inc.
> > > http://www.jsiinc.com
> > > http://www.jsifaq.com
> > >
>
>
>
.



Relevant Pages

  • Re: Password expires for no apparent reason
    ... Sorry to be vague Harj. ... But - I want the passwords to never expire. ... policy that has set the values to what you see below meaning that users ... As Harj said Account lockouts could potentially be a problem as perhaps ...
    (microsoft.public.windows.server.active_directory)
  • Re: Security Alert: Windows 2000 Expired Password Vulnerability
    ... I have never seen a password expire for a windows user account where there ... You might check your policy again. ... I am not familiar with Norton vpn client but with the built in W2K/XP Pro ...
    (microsoft.public.win2000.security)
  • Re: PwdLastSet
    ... If an account isn't expiring it is one of a few things ... The account is personally configured not to expire ... policy as the rest of the domain because something is broken. ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.win2000.active_directory)
  • Re: Password Mgmt
    ... There are 3 policies implemented by the shadow file (and/or NIS+). ... Policy 1: Password Aging (lastchg, min, max, warn} ... the expire field perform very distinct functions that are in no way related. ... The account should be disabled after a week so that it can not ...
    (Focus-SUN)
  • Re: GPO causing client security logs to fill?
    ... a virus in play. ... settings to be applied on your client workstations. ... Group Policy is a complex and often misunderstood beast. ... I modified the account ...
    (microsoft.public.windows.server.sbs)