Check an user account and password in a Windows Domain

If you don’t know if an user account and password in a Windows Domain is correct, you can test it with this command (in a console)

$ runas /u:your_domain\your_user notepad.exe

This command will prompt you for the password. If you enter the right password, notepad will start. If you don’t enter the correct password, an error will be thrown.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.