D
D
Danil2015-12-14 17:44:19
Windows Server
Danil, 2015-12-14 17:44:19

Why is the user parameter not being set?

I create a user:

net user test 123 /passwordchg:no /expires:never /add

Creates, there is a checkbox for prohibiting password changes, but for never expires - no. Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Zabelin, 2015-12-14
@Veneomin

Because this parameter changes the Account Expires field. To set password parameter use
wmic useraccount where "name='username' " set passwordexpires=false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question