Tech Support > Microsoft Windows > Setup & Deployment > NET USER parameters
NET USER parameters
Posted by wheels on January 30th, 2008


I have a script that uses 'NET USER' to alter user parameters on a
workstation. I'm wondering what the parameter is to set the 'Password never
expires' flag to 'YES.'

Any ideas? Please, no 'Active Directory' suggestions, it's not an option.

Thanks,
Geoff.

Posted by Jim on January 30th, 2008



"wheels" <wheels@discussions.microsoft.com> wrote in message
news:86659934-B56E-4D31-8CF1-4321E371156F@microsoft.com...
out by entering:
Net User ?

You might also find the answer by reading the Help & Support document which
describes the commands which cmd.exe supports.
Jim


Posted by Tim Jackson on January 31st, 2008


"wheels" <wheels@discussions.microsoft.com> wrote in message
news:86659934-B56E-4D31-8CF1-4321E371156F@microsoft.com...
The syntax is NET USER <username> /EXPIRES:NEVER however I haven't been able
to get this to work on our XP Pro systems and had to go into Computer
Management and manually set the flag for each account created using our
scripts.



Posted by Dave R. on January 31st, 2008



"Jim" <j.n@nospam.com> wrote in message
news:7v7oj.5269$so6.4243@newssvr19.news.prodigy.ne t...
'NET HELP USER' (and more generally, 'NET HELP <command>'), reveals much
more information about the parameters and options than 'NET USER ?' (or
'NET <command> ?').

FYI

Dave



Posted by Mark Dormer on February 1st, 2008


Because it is changing Account Expires not Password Expires.

Use 'Net User username' and examine the fields you will see both exist.
The GUI doesn't expose all the properties available

Regards
Mark Dormer

"Tim Jackson" <nobody(at)baesystems.com> wrote in message
news:47a1a9cf$1_1@glkas0286.greenlnk.net...


Posted by wheels on March 19th, 2008


"Dave R." wrote:

'Net help user' was created, so it doesn't show up in that help reply. Our
problem is that we use the script to change 'User can change password' to
'No.' This, combined with the default check of the change at logon box made
for a circular logon experience.

By the time I get to the bottom of it, we _may_ have ADS installed, but I'd
still like to know what the flag is...

Thanks for all the replies,
Geoff.

Posted by wheels on March 24th, 2008


What I _really_ mean is what is the flag for 'User must change password at
next logon,' since this is the checkbox that gets our users hung in an
endless loop (when combined with 'User cannot change password').

TIA,
Geoff.

"wheels" wrote:

Posted by Dave R. on March 25th, 2008



"wheels" <wheels@discussions.microsoft.com> wrote in message
news:12CE71BA-43FC-4EF9-91FA-9D1A4CADD378@microsoft.com...
Near as I can tell there isn't any way to do this with NET USER. You
might check in microsoft.public.win2000.cmdprompt.admin to see if they
have a way to do what you want with another utility/tool.

Regards,

Dave




Similar Posts