Forum Discussion
CSP Policy for BitLocker Encryption on AutoPilot Devices
- Nov 26, 2018
After a great deal of experimentation and a https://osddeployment.dk/2018/11/18/how-to-delivering-bitlocker-policy-to-autopilot-devices-to-set-256-bit-encryption/; I tracked down the cause of the issue.
The encryption section of the EndPoint Protection policy does not correctly apply to AAD Joined devices capable of HSTI if the policy is set to Encrypt Device: Require.
I was able to successfully encrypt a device during AutoPilot with AES 256 under the following circumstances.
- Create a brand new Endpoint Protection policy (Important!)
- Apply the encryption settings that you want to set
- Make sure the Encrypt Device setting is set to Not Configured
- Apply the policy to a group containing Azure AD Joined windows devices
- Do not target the policy at user accounts
The policy settings that I used are attached.
After a great deal of experimentation and a https://osddeployment.dk/2018/11/18/how-to-delivering-bitlocker-policy-to-autopilot-devices-to-set-256-bit-encryption/; I tracked down the cause of the issue.
The encryption section of the EndPoint Protection policy does not correctly apply to AAD Joined devices capable of HSTI if the policy is set to Encrypt Device: Require.
I was able to successfully encrypt a device during AutoPilot with AES 256 under the following circumstances.
- Create a brand new Endpoint Protection policy (Important!)
- Apply the encryption settings that you want to set
- Make sure the Encrypt Device setting is set to Not Configured
- Apply the policy to a group containing Azure AD Joined windows devices
- Do not target the policy at user accounts
The policy settings that I used are attached.
- mmiadminJan 30, 2023Copper ContributorThis is an old posting which is almost 4 years back. I am having the same issue now. I am trying to encrypt the bilocker to AES256 unfortunately, the device comes with 128 encryption. The only way I was told that it could be done was to decrypt the current 128 and then re-encrypt it with 256. So, I am trying to find a solution for this. I have one PowerShell script that will try to decrypt the current 128 encryption and then I have a policy that will encrypt the 256 policy.
So, I am finding a way that we could do this. Any suggestions or thoughts or any methods?- Andrew MatthewsJan 30, 2023Iron ContributorYou are on the right track. I would suggest installing a single PowerShell script onto devices as a scheduled task. There is no alternative to decrypting the drive and then re-encrypting.
A scheduled task will survive a reboot and pickup where the previous run did not complete. and avoids issues with UAC because the scheduled task runs as system.
I built a deployment system for Autopilot that includes a process to drop scheduled tasks onto devices for this type of purpose. Unfortunately that deployment system is not for public release.
- NateffromWellyApr 24, 2019Copper Contributor
Andrew Matthews Hi Andrew, quick question you have two policies attached. I would like to know how you are assigning each policy. I gather the first one is to an autopilot group that only contains devices and these settings will be applied during the OOBE/Autopilot process (Enrolment Status page). How are you applying the second policy is it to the same group and also is the does the second policy exclude the settings you have in the first ? Are you applying both policies to the same autopilot group but the settings cannot be combined in a single profile ?
- Andrew MatthewsApr 30, 2019Iron Contributor
I found that most Device Restriction and Endpoint Protection settings can be applied to a user group but some settings have to be applied to a device group.
My current deployments apply BitLocker settings using a separate Endpoint Protection policy that is a assigned to an Azure AD group containing devices. I use the ZtdId trick to create a dynamic group that targets all AutoPilot devices.
- NateffromWellyMay 01, 2019Copper Contributor
Andrew Matthews Thanks for your quick reply Andrew. As per your Policy 1 image, I have the same settings applying to a Dynamic group and assigned to new devices for autopilot. I was curious as to how you are assigning your second policy with the additional encryption settings. Is this to a wider device or user group that would apply after the ESP page ?
I have a ticket logged with MS at the moment and been working on it for nearly a month and they too are struggling and acknowledged there is a bug with the ESP page and BitLocker for 1809.