I seem to be having an issue with this script(I have tried both the user one and the admin one)
Our usecase might be slightly different.
I keey getting the following error
"Error while setting up AAD Bitlocker, make sure that you are AAD Joined and are running cmdlet as an admin: Cannot bind argument to parameter 'Path' because it is null.
No this is only when i try run the script via task scheduler or via powershell ISE(Admin Mode)
When i run the parts of the script that push the key to AAD it works just fine and the recovery key shows up.
The use difference is we normally set up a local account with MDM enabled and Work account connected
Any help on fixing this?
**EDIT**
So i have looked through the code and at line 100 i have made a couple changes with brackets and i think i have a working version now could you take a look and confirm i am not crazy?