Re: RE: Net user add & password expiration



In the second command I obtain that the option /pwnexp does not exist ?
Are you sure ?

regards,

"Jerold Schulman" wrote:


You forgot the password

/expires:never is for account expiration, NOT password expiration

See tip 0570 in the 'Tips & Tricks' at http://www.jsifaq.com

net user /ADD "newuser" "Pass phrase" /passwordchg:no
netuser "user" /pwnexp:y

net user newlocaluser
User name newuser
Full Name
Comment
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never

Password last set 04/26/2006 11:59
Password expires Never
Password changeable 04/27/2006 11:59
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.


On Wed, 26 Apr 2006 05:22:01 -0700, Guilhem <Guilhem@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Sorry I eat some words...

We are working on a script for Windows 2003 server in standalone. We wanted
to add a user locally with the password expiration to never and no possiblity
to modify its password.
The following command is used:
net user /ADD "user" /expires:never /passwordchg:no

This command works on windows 2000 and NT but not on windows 2003. we did
not find any other options.

can somebody help us ?
Thanks in advance

Guilhem

"Guilhem" wrote:

Hello,

We are working on a script for Windows 2003 server in standalone. We wanted
to add a user locally with the password expiration to never and no possiblity
to modify its password.
The following command is used:
net user /ADD "user" /expires:never /passwordchg:no

This command works on windows 2000 and NT but not on windows 2003. We have


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com

.



Relevant Pages

  • RE: re-setting boot partition
    ... Description of the Windows 2000 Recovery Console ... For a Microsoft Windows XP version of this article, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Win2000 Upgrade to SP3 Express Setup error.
    ... Start your computer with the Windows Setup floppy disks, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ... you cannot copy a file from the local hard disk to a floppy disk. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)
  • Re: Great SWT Program
    ... Invisible extra things to backspace away are going to trip ... This indicates that Windows is not seeing the same input ... drag and drop oddities in Explorer indicate a similar problem; ... command prompt instead of a different task; ...
    (comp.lang.java.programmer)
  • Software Report [Windows Tips: Command Line Control - 08/03/2005]
    ... Windows Tips: Command Line Control ... Some of Windows' most useful tools don't have desktop icons. ... Stay awake at the switch: While the commands are useful by themselves, ... When your command acts on a file or folder (such ...
    (comp.sys.ibm.pc.misc)