Windows – Change user password on other domain command line

command-line-interfacepasswordwindowswindows-server-2008

I'd like to change user's password using cmd.exe on domain account.

I tried

net user user_name * /domain

but it doesn't work, because my user is on another domain. How can I specify, to which domain user belongs?

Best Answer

You can use the below command to reset the user password.

dsquery user -samid username | dsmod user -pwd new_password

If you logged as a domain controller, you can you the below command

net user username new_password

You can also use the below net user command from your workstation

net user username new_password /domain