Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Test Whether Drive is Connected

15 views
Skip to first unread message

Peter

unread,
Aug 25, 2022, 11:17:08 AM8/25/22
to
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

unread,
Aug 25, 2022, 3:02:56 PM8/25/22
to
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

unread,
Aug 26, 2022, 1:29:28 PM8/26/22
to
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

unread,
Aug 26, 2022, 3:05:39 PM8/26/22
to
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.
0 new messages