- Local time
- 2:48 AM
- Posts
- 162
- OS
- macOS Sequoia
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
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
powershell -ep bypass -f BitLocker_Progress.ps1
powershell -ep bypass -f BitLocker_Progress.ps1 E:

Well, that kept meHere'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.
Unless you have a huge amount of data and slow pc/drive, it does not usually take that long (less than 30 minutes say).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.
While I've written other WinForms scripts, never touched an animated progress bar before.Well, that kept meamusedoccupied 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