The script I posted works on Win7 for me... It's what I tested it on..
Post your script that you're using, because I tested the one I modified fully and it wouldn't unlock when I entered an incorrect password, and it only locked the files/folders that were under the specified LOCKFOLDER variable. The one I modified also doesn't have the additional "are you sure you want to unlock" line... So not sure which one you're using.