Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Setup and Deployment / March 2008

Tip: Looking for answers? Try searching our database.

NET USER parameters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wheels - 30 Jan 2008 22:28 GMT
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.
Jim - 30 Jan 2008 23:14 GMT
>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
> Any ideas? Please, no 'Active Directory' suggestions, it's not an option.
>
> Thanks,
> Geoff.
Dave R. - 31 Jan 2008 15:45 GMT
>>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
[quoted text clipped - 4 lines]
> 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
wheels - 19 Mar 2008 22:00 GMT
> >>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
[quoted text clipped - 12 lines]
>
> 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.
Tim Jackson - 31 Jan 2008 11:15 GMT
>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
[quoted text clipped - 5 lines]
> 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.
Mark Dormer - 02 Feb 2008 00:27 GMT
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

>>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
[quoted text clipped - 10 lines]
> Management and manually set the flag for each account created using our
> scripts.
wheels - 24 Mar 2008 22:36 GMT
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.

> 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
[quoted text clipped - 4 lines]
> Thanks,
> Geoff.
Dave R. - 25 Mar 2008 13:34 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.