NET USER parameters

  • Thread starter Thread starter wheels
  • Start date Start date
W

wheels

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.
 
wheels said:
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.'
I don't know the answer, but if it is all possible to do this, you can find
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
 
wheels said:
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.

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.
 
Jim said:
I don't know the answer, but if it is all possible to do this, you can
find out by entering:
Net User ?

'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
 
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
 
Dave R. said:
'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
Unfortunately, 'User must change password at next logon' was added after the
'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.
 
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 said:
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').

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