anyweb Posted December 23, 2019 Report post Posted December 23, 2019 sure post your updated code here Quote Share this post Link to post Share on other sites More sharing options...
olavrb Posted December 30, 2019 Report post Posted December 30, 2019 (edited) Thanks for this script/ solution. Thanks to this I learned a lot about how to do BitLocker with PowerShell from Intune MDM. I've added some functionality and made some fixes and design changes, but can't release all the code here due to the fact that I've done this for my company, and it's their IP. That being said, I'd like to share a fix to one part that failed for me some times: Fetching the certificate for uploading recovery password to Azure AD using REST. I rewrote it to this, might be usefull for others: # Get the AAD Machine Certificate $Certificate = $([array]$(Get-ChildItem -Path 'Certificate::LocalMachine\My').Where{$_.'Issuer' -match 'CN=MS-Organization-Access'}) $CertificateThumbprint = [string]$($Certificate | Select-Object -ExpandProperty 'Thumbprint') $CertificateSubject = [string]$([string]$($Certificate | Select-Object -ExpandProperty 'Subject').Replace('CN=','')) # Get tenant domain name from registry $TenantDomain = [string]$([string]$(Get-ItemProperty -Path ('Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CloudDomainJoin\JoinInfo\{0}' -f ($CertificateThumbprint)) -Name 'UserEmail' | Select-Object -ExpandProperty 'UserEmail').Split('@')[-1]) Offtopic: How do I set a profile picture? I've searched the forum and Google-ed it too. Edited December 30, 2019 by olavrb 1 Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted December 30, 2019 Report post Posted December 30, 2019 thanks @olavrb this is a good contribution, please keep them coming, as regards your profile pic, you need at least 10 posts to be able to change it, cheers ! niall Quote Share this post Link to post Share on other sites More sharing options...
danseals Posted March 9, 2020 Report post Posted March 9, 2020 What happens if the target endpoint has more than one fixed drive? It appears to work fine for the OS Drive, but the secondary drive never attempts to be encrypted. Just curious if there is a way to encrypt all fixed drives (obviously not USB / external storage that happens to be attached). Thanks! Quote Share this post Link to post Share on other sites More sharing options...
leak73 Posted April 3, 2020 Report post Posted April 3, 2020 2 questions. 1.I just tested this script on a user's pc. The script pushed fine, and ran and encyrpted the drive, but the recovery key is not in inute/AzureAD. What can I do to troubleshoot this? 2. If I push this to a user who already has their drive encrypted(different user now) but is only now joining their pc to azureAD/Intune. Will the script still run and detect that the drive is encrypted and sync the recovery key to intune/AzureAD? Cheers, Jim Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted April 3, 2020 Report post Posted April 3, 2020 what does the C:\Windows\Temp\TriggerBitLocker.log tell you ? I haven't tested the second scenario, Quote Share this post Link to post Share on other sites More sharing options...
olavrb Posted April 9, 2022 Report post Posted April 9, 2022 I saw the non-user version of the MSI from the original post didn't work anymore, so I uploaded my copies of them just in case anyone still needs it. TriggerBitlocker Windows-Noob v1.0.0.2 - User.7z TriggerBitlocker Windows-Noob v1.0.0.2 - System.7z 1 Quote Share this post Link to post Share on other sites More sharing options...