Discussion:
Test Whether Drive is Connected
(too old to reply)
Peter
2022-08-25 15:17:07 UTC
Permalink
From a batch file is there a way to test whether a particular external USB drive that is BitLocker protected is currently connected to the PC?

Normally I would use “if exist x:” but with BitLocker protection enabled it says the drive is not connected even if it is connected. (All I’m trying to determine is whether or not the drive is connected -- not whether it’s locked or unlocked.)

Thanks.
Zaidy036
2022-08-25 19:02:53 UTC
Permalink
Post by Peter
From a batch file is there a way to test whether a particular external USB drive that is BitLocker protected is currently connected to the PC?
Normally I would use “if exist x:” but with BitLocker protection enabled it says the drive is not connected even if it is connected. (All I’m trying to determine is whether or not the drive is connected -- not whether it’s locked or unlocked.)
Thanks.
First Google search using your question:
batch file is there a way to test whether a particular external USB
drive that is BitLocker protected is currently connected to the PC?

https://winaero.com/check-bitlocker-drive-encryption-status-in-windows-10/
Peter
2022-08-26 17:29:27 UTC
Permalink
Post by Peter
Post by Peter
From a batch file is there a way to test whether a particular external USB drive that is BitLocker protected is currently connected to the PC?
Normally I would use “if exist x:” but with BitLocker protection enabled it says the drive is not connected even if it is connected. (All I’m trying to determine is whether or not the drive is connected -- not whether it’s locked or unlocked.)
Thanks.
batch file is there a way to test whether a particular external USB
drive that is BitLocker protected is currently connected to the PC?
https://winaero.com/check-bitlocker-drive-encryption-status-in-windows-10/
Thanks for the reply. The article you listed is about how to determine whether a BitLocker drive is locked or unlocked which is not what I need to know. What I'm trying to determine is whether a particular BitLocker drive is currently connected to the PC. So far I haven't found anything about how to do that. Any suggestions appreciated!
Zaidy036
2022-08-26 19:05:37 UTC
Permalink
Post by Peter
Post by Peter
Post by Peter
From a batch file is there a way to test whether a particular external USB drive that is BitLocker protected is currently connected to the PC?
Normally I would use “if exist x:” but with BitLocker protection enabled it says the drive is not connected even if it is connected. (All I’m trying to determine is whether or not the drive is connected -- not whether it’s locked or unlocked.)
Thanks.
batch file is there a way to test whether a particular external USB
drive that is BitLocker protected is currently connected to the PC?
https://winaero.com/check-bitlocker-drive-encryption-status-in-windows-10/
Thanks for the reply. The article you listed is about how to determine whether a BitLocker drive is locked or unlocked which is not what I need to know. What I'm trying to determine is whether a particular BitLocker drive is currently connected to the PC. So far I haven't found anything about how to do that. Any suggestions appreciated!
Sorry but I do not use Bitlocker.

Perhaps the following will help:
<https://devblogs.microsoft.com/oldnewthing/20170523-00/?p=96206>
combined with a "button pusher" app called PTFBpro that includes visual
triggers which would react depending on the image presented as suggested
above.

Loading...