Re: net User command



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: Re: users not be able to start/stop services on Domain Controller
    ... >Thank you so much Jerold. ... >programs (on command prompt) on Domain Controllers? ... >>>remote console, ... >> JSI, Inc. ...
    (microsoft.public.win2000.group_policy)
  • Re: Controlling file access
    ... 2004 14:21:49 in microsoft.public.win2000.cmdprompt.admin, Jerold ... Schulman writes ... >>I questioning here as I am looking for a command line solution. ... Walter Briscoe ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: default command.com environment size
    ... Great, thanks Jerold, I wanted to confirm that before something else blows. ... These legacy apps are like a juggling act. ... BobS ... >>command line ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: my reminders dont work
    ... I was able to fix the problem once I ran the proper command line ... or in combination with the other command line switches that I had previously ... > <<I know that you really do get people that are stupid enough to not have ... > made it past the point of checking to see if my speakers were turned on?>> ...
    (microsoft.public.outlook)
  • Re: Synchronizing 2 computers ?
    ... > XXCOPY is like the old DOS XCOPY command but with a lot more switches. ... > XXCOPY only copies it does not synchronise!!! ...
    (microsoft.public.windowsxp.network_web)

Loading