Try the following
@echo off
setlocal enabledelayedexpansion
REM Get the list of drive letters
for /f "tokens=2 delims==:" %%d in ('wmic logicaldisk get caption^,drivetype ^| find "3"') do (
set "drive=%%d"
echo Disabling BitLocker for drive !drive!...
manage-bde -off !drive!:
)
echo All BitLocker drives have been disabled.
pause
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin