User creation by command - NET USER
Moderator: DosItHelp
-
- Posts: 39
- Joined: 28 Feb 2013 13:40
User creation by command - NET USER
How do I create a local user net user command, and user owned display marking (enabled) field: "User must change password at next logon"?
Re: User creation by command - NET USER
Iswhat you wanted?
Code: Select all
NET USER UserName * /ADD
-
- Posts: 39
- Joined: 28 Feb 2013 13:40
Re: User creation by command - NET USER
Create the user with parameter to be forced to change the password to login.
Re: User creation by command - NET USER
Code: Select all
/logonpasswordchg:yes
My Google Foo is strong.
-
- Posts: 39
- Joined: 28 Feb 2013 13:40
Re: User creation by command - NET USER
D:\>NET USER 12345678901 ABcd@123 /ADD /FULLNAME:"JUAN DA SILVA DIAS" /comment:"CPF 123.456.789-01" /logonpasswordchg:yes
The option /LOGONPASSWORDCHG:yes is unknown.
The syntax of this command is:
NET USER
[username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]
More help is available by typing NET HELPMSG 3506.
Re: User creation by command - NET USER
What version of Windows?
http://blog.johnmuellerbooks.com/2011/0 ... -net-user/
http://blog.johnmuellerbooks.com/2011/0 ... -net-user/
-
- Posts: 39
- Joined: 28 Feb 2013 13:40
Re: User creation by command - NET USER
It is Windows Server 2003 Standard Edition SP2.
For the company's IT security policy, this link is not available for consultation.
For the company's IT security policy, this link is not available for consultation.
-
- Posts: 39
- Joined: 28 Feb 2013 13:40
Re: User creation by command - NET USER
I did not succeed to simulate. And you?
Re: User creation by command - NET USER
The article linked above shows that it was introduced and not documented.
It mentions things that will probably explain why it fails.
It mentions things that will probably explain why it fails.
Re: User creation by command - NET USER
Not sure this works for localComputer, it just might..
http://windowsitpro.com/windows/netexe-referenceThis probably forces all users to change their passwords every dayI was looking for a per 'user'/'userGroup' configuration but couldn't find it.
http://windowsitpro.com/windows/netexe-reference
Code: Select all
/minpwlen:<length> Minimum number of characters for the password. Default is 6, valid range is between 0 and 14
/maxpwage:<days> Maximum number of days a password is valid. Default is 90, valid range is between 0 and 49710
/minpwage:<days> Number of days that must occur before the password can be changed. Default is 0, valid range is between 0 and maxpwage
/uniquepw:<number> Password may not be reused for number attempts
Code: Select all
net.EXE accounts /minpwage:0 /maxpwage:1