What I'm trying to achieve is to create a very small script to unlock my blocker drive using a password, not a recovery password.
There is a Microsoft team for this, which:
manage-bde -unlock D: -password
where Dis my locker bit. If I run this command line, it will ask me for a password, and then the disk will be correctly unlocked.
At first I thought of creating a variable to request a password for the user, and then use this variable in the above command line, so the script would look like this:
set /p pass= what is your pass
manage-bde -unlock D: -password %pass%
The problem is that -passwordit does not seem to accept any argument, whether it is a variable or a password in a clear form, it will fail. Thus, the only way to make it work seems to be an automatic response to a password request, with the data in the variable. But I do not know how to do this. I guess after manage-dbe...
additional command line addedMy programming skills are pretty weak, so any help would be appreciated.
source
share