Solved Seeing BitLocker whole-disk decryption with progress bar?


Baeolophus

Well-known member
Member
Local time
2:48 AM
Posts
162
OS
macOS Sequoia
Is there a way to see a progress bar somewhere that shows how far the BitLocker control panel is in decrypting my drive?

From this

BitLocker.webp

I have no way of seeing how much more time it will take.
 

My Computer My Computer

At a glance

macOS SequoiaM1 Max Apple Silicon32 GB
OS
macOS Sequoia
Computer type
Laptop
Manufacturer/Model
Apple
CPU
M1 Max Apple Silicon
Memory
32 GB
I'm an elevated PowerShell prompt
Powershell:
Get-BitlockerVolume -Mountpoint C:
 

My Computer My Computer

At a glance

Linux Mint
OS
Linux Mint
Computer type
Laptop
Manufacturer/Model
System76 Lemur Pro
UPDATE:
I rewrote my original PowerShell script, so it's a "90% perfect" knockoff of the genuine BitLocker progress widget. You can specify the Drive letter on the command-line (by default it presumes you want to view drive C:).

Code:
powershell -ep bypass -f BitLocker_Progress.ps1
powershell -ep bypass -f BitLocker_Progress.ps1 E:

It works for both BitLocker encryption and decryption passes. If you have multiple drives to monitor, run several opies of the script (each assigned to a different Drive letter).

1757821469292.webp
 

Attachments

Last edited:

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Here's a terrible PowerShell script (which works for both encrypting and decrypting). It's terrible because I can't figure out why the PS progress window can't be dragged to another part of the screen. But otherwise, it works.
Well, that kept me amused occupied for a while: I was intrigued by the idea of a Powershell 'form'. I am an almost complete PS novice, and find its syntax on the command line arcane enough. In form mode it uses winforms, and its was tricky (for me) converting guidance aimed at programmers using stuff like C or C++ into its powershell equivalent. The powershell forum was helpful.

So I had some fun testing your script, determind to find out how to move the form when it is running. So far I have failed, but I now see the difference between a 'static' form, invoked with $form.show(), and a modal form, invoked with $form.ShowDialog(), where the user can click buttons and resize or move the form,

I tried to combine the two using $form.Add_Shown( function ) before ShowDialog - the result was that the form loads and runs the function (with its updating progress bar), but is static (no user interaction possible), and only when/if the function terminates does the modal behaviour start.

I believe there may be a possibility by calling up mouse activity functions, but I am done for now. Martin
 

My Computers My Computers

  • At a glance

    W10Ryzen3-2200G16 GB Kingston HyperX DDR4Integrated
    OS
    W10
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home brew
    CPU
    Ryzen3-2200G
    Motherboard
    GA-A320M-S2H
    Memory
    16 GB Kingston HyperX DDR4
    Graphics Card(s)
    Integrated
    Sound Card
    Integrated
    Monitor(s) Displays
    LG W2246
    Screen Resolution
    1920x1080
    Hard Drives
    Intel 760p 256GB NVMe M.2
    Seagate Barracuda 7200 1TB
    Gash Seagate ST31608
    PSU
    2006-vintage no-name
    Case
    Acer Aspire 2006
    Cooling
    Air (fan-assist)
    Keyboard
    HP SK-2885
    Mouse
    wireless
    Internet Speed
    32 mbps
    Browser
    FF latest
    Antivirus
    MS Defender
  • At a glance

    W10Ryzen 5 3500U8 GBon-board
    Operating System
    W10
    Computer type
    Laptop
    Manufacturer/Model
    HP 255 G8
    CPU
    Ryzen 5 3500U
    Memory
    8 GB
    Graphics card(s)
    on-board
    Monitor(s) Displays
    16"
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung SSD 512GB Nvme
    Browser
    FF + Edge
    Antivirus
    MS Defender
Is there a way to see a progress bar somewhere that shows how far the BitLocker control panel is in decrypting my drive?

From this

View attachment 145197

I have no way of seeing how much more time it will take.
Unless you have a huge amount of data and slow pc/drive, it does not usually take that long (less than 30 minutes say).
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Well, that kept me amused occupied for a while: I was intrigued by the idea of a Powershell 'form'. I am an almost complete PS novice, and find its syntax on the command line arcane enough. In form mode it uses winforms, and its was tricky (for me) converting guidance aimed at programmers using stuff like C or C++ into its powershell equivalent. The powershell forum was helpful.

So I had some fun testing your script, determind to find out how to move the form when it is running. So far I have failed, but I now see the difference between a 'static' form, invoked with $form.show(), and a modal form, invoked with $form.ShowDialog(), where the user can click buttons and resize or move the form,

I tried to combine the two using $form.Add_Shown( function ) before ShowDialog - the result was that the form loads and runs the function (with its updating progress bar), but is static (no user interaction possible), and only when/if the function terminates does the modal behaviour start.

I believe there may be a possibility by calling up mouse activity functions, but I am done for now. Martin
While I've written other WinForms scripts, never touched an animated progress bar before.

Gemini provided coding examples that used Show() and while loops. Obviously that's got a lot of drawbacks once you start testing. Later I found a better example of combining a WinForms timer and ShowDialog(). I've replaced my old script in post #3.

The script will fork itself into the background, so it's non-blocking from the command line. I realized someone might want to monitor progress on multiple drives, and it would be annoying to force the user to open another CMD or PS shell for each drive instance.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Updated script: it will take me a while to remove the bitlocker stuff, as I don't use that - but I see how it works, I think. Ta, Martin
 

My Computers My Computers

  • At a glance

    W10Ryzen3-2200G16 GB Kingston HyperX DDR4Integrated
    OS
    W10
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home brew
    CPU
    Ryzen3-2200G
    Motherboard
    GA-A320M-S2H
    Memory
    16 GB Kingston HyperX DDR4
    Graphics Card(s)
    Integrated
    Sound Card
    Integrated
    Monitor(s) Displays
    LG W2246
    Screen Resolution
    1920x1080
    Hard Drives
    Intel 760p 256GB NVMe M.2
    Seagate Barracuda 7200 1TB
    Gash Seagate ST31608
    PSU
    2006-vintage no-name
    Case
    Acer Aspire 2006
    Cooling
    Air (fan-assist)
    Keyboard
    HP SK-2885
    Mouse
    wireless
    Internet Speed
    32 mbps
    Browser
    FF latest
    Antivirus
    MS Defender
  • At a glance

    W10Ryzen 5 3500U8 GBon-board
    Operating System
    W10
    Computer type
    Laptop
    Manufacturer/Model
    HP 255 G8
    CPU
    Ryzen 5 3500U
    Memory
    8 GB
    Graphics card(s)
    on-board
    Monitor(s) Displays
    16"
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung SSD 512GB Nvme
    Browser
    FF + Edge
    Antivirus
    MS Defender

Latest Support Threads

Back
Top Bottom