Verify username and password Batch Script
Posted on 2010-09-23
I am a domain Admin using a windows 2008 domain. I have created the following batch script.
Set /p Store=Enter the Account Name for a password reset:
@echo You are going to attempt to change the password for %Store%'s Account.
Set /p Pass=Enter the new Password for %Store%'s Account:
net user %Store% %Pass% /DOMAIN
The problem is that I get no verification if the batch was successful. I am hoping someone can help me out. All I need is output that would verify if the username and new password work.