I'm not sure why this is occuring and I am hoping someone can help me find a way around it. I use a batch script to attach a bitlocker-encrypted VHD using diskpart. Whenever I attach the VHD, windows 10 immediately tries to explore the new drive and pops up a blank explorer window and an error "H:\ is not accessible. Access is denied."
Then I get a notification from Windows that the drive is bitlocker encrypted. After I enter the password a new explorer window opens with the VHD contents. Does anyone here have any suggestions on how to prevent the initial explorer window from opening. The diskpart script I am using is a follows:
select vdisk file="C:\Users\USERNAME\Desktop\7900.vhd"
attach vdisk
and I call it via diskpart /s from an elevated batch file.
Thanks in advance,
Rocky Essing