Re: net User command
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Sat, 28 Jan 2006 21:09:44 +1100
I don't know about Server 2003 but on a Small Business Server
2003 you simply set this in the overall server management screen
that gives you access to a dozen or so wizards. This one is, of
course, under "Users", then "Password Policy".
"Alan" <Alan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3BCFFEBC-2D13-4C79-B997-AD3B6968C114@xxxxxxxxxxxxxxxx
> 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
> > > >
> >
> >
> >
.
- Follow-Ups:
- Re: net User command
- From: Alan
- Re: net User command
- References:
- Re: net User command
- From: Jerold Schulman
- Re: net User command
- From: Alan
- Re: net User command
- From: Pegasus \(MVP\)
- Re: net User command
- From: Alan
- Re: net User command
- Prev by Date: Re: net User command
- Next by Date: Re: net User command
- Previous by thread: Re: net User command
- Next by thread: Re: net User command
- Index(es):
Relevant Pages
|