Bitlocker – get encryption status

@echo off
@echo Start: %date% %time%
echo %computername%
manage-bde -status %systemdrive% -p
If errorlevel 0 goto error0
If errorlevel -1 goto error-1

Goto end

:error0
echo %systemdrive% is encrypted
Goto end

:error-1
echo %systemdrive% is not encrypted
Goto end

:end
@echo End: %date% %time%
exit

Leave a Reply

Your email address will not be published. Required fields are marked *