Sometimes you will have an AD Service Account configured and you might not be sure what the password is – a good example of this that sometimes catches me out is the SCCM Network Access Account.
To safely test the account username and password we can use PowerShell with the following simple and safe command:
Start-Process -FilePath winver.exe /c -Credential (Get-Credential)
This will attempt to run “winver.exe” and a prompt will appear asking for credentials:
If the account credentials that you enter are not correct you will see the following error:
But if the credentials provided are correct then “winver.exe” will open as expected and no error message will be produced:
Simple but effective 🙂