olavrb
-
Posts
2 -
Joined
-
Last visited
-
Days Won
2
Posts posted by olavrb
-
-
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.
- 1
Configuring BitLocker in Intune - Part 2. Automating Encryption
in Microsoft Intune
Posted
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