We have a policy that locks ad user account after so many failed attempts. I want to be able to send myself an email which will execute a script to unlock a locked ad account.
I can unlock an account with a vbscript that I found but I have to enter the username into the script. I want to be able to put the words "unlock %username%" into an email and send it to my self and then have the %username% inserted into my script to unlock the account.
I have not been able to find anything that will take the subject line and insert it into a script.
Can anyone point me in the right direction for this.......is this a doable thing?
Can anyone point me in the right direction as to where to begin?