Windows How to verify user credentials?

Solution 1:

runas /user:username cmd This will open a command prompt if the password is properly entered.

There are other answers here on ServerFault.

Here is a Powershell script that will also perform the test.