Re: net User command



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
> > > >
> >
> >
> >


.



Relevant Pages

  • RE: VmWare and Pen-test Learning
    ... Setup a tftp server on your client machine. ... Use John the Ripper to crack the passwords. ... (dictionary attacks, brute force, single mode). ... Download FREE whitepaper on how a managed service can help ...
    (Pen-Test)
  • Re: Strange SSID in the air...
    ... the cable modem assigning Gateway+DNS to the Linksys router etc.)? ... to verify that DNS lookups actually point to the real web site. ... from overloading one server, while another remains under-utilized. ... dumb applications that are not very smart about encrypting passwords. ...
    (alt.internet.wireless)
  • Re: unified authentication
    ... > I have a number of FreeBSD machines. ... Each *class* of server or device gets a different root password (or ... root/enable passwords, and have a bit less worry about ex-employees. ... only sysadmins have logins on routers.) ...
    (FreeBSD-Security)
  • Re: Strange SSID in the air...
    ... the cable modem assigning Gateway+DNS to the Linksys router etc.)? ... to verify that DNS lookups actually point to the real web site. ... from overloading one server, while another remains under-utilized. ... dumb applications that are not very smart about encrypting passwords. ...
    (alt.internet.wireless)
  • RE: Where are Local Passwords stored on Win2K
    ... This should restrict the likely hood of have access to multiple server if one is to get compromised. ... Where are Local Passwords stored on Win2K ... compromises within our network. ...
    (Security-Basics)