net user syntax

W

William Hymen

Hi All,

I would like to reset a locked-out user with
the NET USER command, and the syntax is not given by
"net user /?" The help utility is missing all the options flags.

What would the syntax be ?

Thanks, -

Bill
 
A

Andrew Graham

William said:
I would like to reset a locked-out user with
the NET USER command, and the syntax is not given by
"net user /?" The help utility is missing all the options flags.

What would the syntax be ?

net user /help

Andrew Graham
 
S

Scott Losawyer

unlock:

net user /active /domain
(if it is a domain account and you and the ws your're invoking the command
on is in the same domain)

or for local:
net user /active
 
C

Clay Calvert

On Sat, 20 Sep 2003 23:50:03 GMT, "William Hymen"

For a local account:
net user USERNAME /active:yes

For a domain account:
net user USERNAME /domain /active:yes
Hi All,

I would like to reset a locked-out user with
the NET USER command, and the syntax is not given by
"net user /?" The help utility is missing all the options flags.

What would the syntax be ?

Thanks, -

Bill

Clay Calvert
(e-mail address removed)
Replace "W" with "L"
 
W

William Hymen

William Hymen said:
Hi All,

I would like to reset a locked-out user with
the NET USER command, and the syntax is not given by
"net user /?" The help utility is missing all the options flags.

What would the syntax be ?

Thanks, -

Bill
 
Joined
Dec 17, 2006
Messages
1
Reaction score
0
Here is the SOLUTION!!
-----------------------------
To change a user's password at the command prompt, log on as an administrator and type:

net user user_name * /domain

When you are prompted to type a password for the user, type the new password, not the existing password. After you type the new password, the system prompts you to retype the password to confirm. The password is now changed.

Alternatively, you can type the following command:

net user user_name new_password

When you do so, the password changes without prompting you again. This command also enables you to change passwords in a batch file.

Non-administrators receive a "System error 5 has occurred. Access is denied" error message when they attempt to change the password.
APPLIES TO
• Microsoft Windows 2000 Server
• Microsoft Windows 2000 Advanced Server
• Microsoft Windows 2000 Professional Edition
• Microsoft Windows 2000 Datacenter Server
• Microsoft Windows NT Workstation 3.5
• Microsoft Windows NT Workstation 3.51
• Microsoft Windows NT Workstation 4.0 Developer Edition
• Microsoft Windows NT Server 3.5
• Microsoft Windows NT Server 3.51
• Microsoft Windows NT Server 4.0 Standard Edition
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top