I am trying to enable bitlocker on windows server 2012 R2 data volume using following command:
Enable-BitLocker -MountPoint $volume -Password ($password | ConvertTo-SecureString -AsPlainText -Force) -PasswordProtector
After this I am trying to lock the data volume with,
Lock-BitLocker $volume -ForceDismount
Now, the problem here is, encryption process is on hold as I have locked the data volume. I want to lock the data volume after full volume encryption. Is there any option to lock the data volume after encryption process complete? Any help?