Skip to content
SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr

SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr

Written By Vimal Das
Last Updated August 9, 2024
Posted In SCCM
SHARE

SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr. SCCM manages Bitlocker encryption natively during OS upgrades. However, upgrading the OS on disks with third-party encryption drivers is always a challenge.

I have seen IT Admins decrypt the disk before the OS Upgrade and then re-enable encryption after the in-place OS upgrade. This requires huge effort and time and impacts the end-user experience.

This post describes the Windows 10 upgrade task sequence configuration for McAfee Encrypted Machines. This configuration allows IT to perform a successful OS upgrade while keeping the McAfee encryption intact.

Starting with Windows 10 1607, Microsoft provided the command-line switch “/ReflectDrivers. ” This switch allows drivers to be added to the OS image during the setup and installation phase. The Windows 10 upgrade starts by running setup.exe on the client.

Patch My PC

SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr

As shown below, we need to add the switch “/ReflectDrivers ” along with the path to a folder that contains McAfee encryption drivers. For more details, refer to the Windows setup command line.

Example

Setup.exe /ReflectDrivers “%programfiles%\McAfee\Endpoint Encryption\OSUpgrade” .
OR
Setup.exe /ReflectDrivers  “C:\Program Files\McAfee\Endpoint Encryption\OSUpgrade”

SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr - Fig.1
SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr – Fig.1

The folder below contains McAfee encryption drivers. Now that we know the command-line switch, we will see how it can be incorporated into the SCCM task sequence. As shown below, the task sequence doesn’t allow adding the additional OS upgrade switch in the GUI.

Note: if /the ReflectDrivers switch is not used during the OS upgrade, the computer will fail to boot.

SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr - Fig.2
SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr – Fig.2

Hence, to append an additional Windows setup command-line switch, we need to use the variable “OSDSetupAdditionalUpgradeOptions.” As mentioned in the Niall Brady post, we can also use this variable for other purposes.

TypeName
Set Task Sequence VariableModify Setup Command Line
SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr – Table1
SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr - Fig.3
SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr – Fig.3

Result

Before updating task-sequence variable “OSDSetupAdditionalUpgradeOptions

    Set command line: “C:\WINDOWS\ccmcache\XX\SETUP.EXE” /ImageIndex 3 /auto Upgrade
    /quiet /noreboot /postoobe “C:\WINDOWS\SMSTSPostUpgrade\SetupComplete.cmd”
    /postrollback “C:\WINDOWS\SMSTSPostUpgrade\SetupRollback.cmd” /installdrivers
    “C:\WINDOWS\ccmcache\XX” /DynamicUpdate Disable

    SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr - Fig.4
    SCCM In-Place OS Upgrade on McAfee Encrypted Machines Configuration Manager ConfigMgr – Fig.4

    After updating the task-sequence variable “OSDSetupAdditionalUpgradeOptions”, the final Windows installation command line will look like the below from SCCM

      Executing command line: “C:_SMSTaskSequence\Packages\XXXXXXXX\SETUP.EXE” /ImageIndex 1
      /auto Upgrade /quiet /noreboot /postoobe “C:\WINDOWS\SMSTSPostUpgrade\SetupComplete.cmd”
      /postrollback “C:\WINDOWS\SMSTSPostUpgrade\SetupRollback.cmd” /installdrivers
      “C:_SMSTaskSequence\Packages\XXXXXXXX” /DynamicUpdate Disable /ReflectDrivers
      “C:\Program Files\McAfee\Endpoint Encryption\OSUpgrade”

      Note: The use of the MBR2GPT.exe tool is currently unsupported with McAfee Drive Encryption. So, you cannot switch from legacy BIOS to UEFI. This capability is still in the proof of concept form and expected to be added in planned future Mcafee releases.

      References

      1. Microsoft. Task sequence action variables in System Center Configuration Manager
      2. Mcafee. Upgrade OS with drive encryption

      We are on WhatsApp now. To get the latest step-by-step guides, news, and updates, Join our Channel. Click here. HTMD WhatsApp.

      Author

      Vimal has more than 10 years of experience in SCCM device management solutions. His main focus is Device Management technologies like Microsoft Intune, ConfigMgr (SCCM), OS Deployment, and Patch Management. He writes about technologies like SCCM, Windows 10, Microsoft Intune and MDT.

      Written by

      Vimal has more than 10 years of experience in SCCM device management solution. His main focus is on Device Management technologies like Microsoft Intune, ConfigMgr (SCCM), OS Deployment,Patch Management. He writes about the technologies like SCCM, Windows 10, Microsoft Intune and MDT.

      Discussion · 17 comments

      1. Good article.

        One question thought, based on the last line “Note : The use of MBR2GPT.exe tool is currently unsupported with McAfee Drive Encryption. So, you cannot switch from legacy BIOS to UEFI..”

        Based on that, if I needed to do in-place upgrade from 7 to 10 on McAfee encrypted disk AND BIOS to UEFI conversion, that is not possible?

        1. StaffThank you Dyltone,
          I think there is a catch here..mbr2gpt.exe will re-partition the hard disk layout.The hard disk partition layout for UEFI based machine is different from BIOS based machine.
          Mcafee encryption should support this which i think is not the case now.Towards end of the below forum it mentioned mbr2gpt.exe capability on Mcafee encrypted computer is in still in POC stage.

          https://www51.v1ideas.com/IntelIdeas/ISecGForum/Idea/Detail/57703 ( Note : I am not sure about the authenticity of the site)

      2. Good stuff. I’m about to start testing upgrading in a Symantec environment. We have some issues with 1607 we hope to get rid of with a newer version. Only our laptops are encrypted but that’s still half of our systems.

      3. Oh yeah thanks. I’m aware the process is different. I didn’t mean for my comment to sound like I would be following the McAfee process.

      4. Great article! Would this TS work in an environment where systems on which DP is installed have client OS and not server OS. (Because for OSD, DP’s need to be installed on a server OS).

      5. Hi all, just to clarify, what is the variable to use with MDT so I can use the reflectdrivers switch? Also how or where in the task sequence do I put or does it go in the customsettings.ini?

        1. Hi Zay, I dont know where to put this variable in the TS either. Did you ever find this out? This has been a huge struggle for our organization. Thank you!

      6. That covers starting the upgrade with McAfee disk encryption and ending the upgrade with it still intact.
        What if we want to REMOVE McAfee disk encryption at the start of the upgrade task sequence, on Windows 7, then upgrade to Windows 10, run MBR2GPT and at the end deploy MBAM & Bitlocker?
        Can the /reflectdrivers switch be used to disable McAfee disk encryption, clearing the way for the McAfee disk encryption agent and client to be uninstalled?
        Thats our current challenge.

      7. Hello,

        What variable should I use in order to have the Task Sequence detect if the device is really encrypted? I did a non elegant way which was to loof for the “C:\Program Files\McAfee\Endpoint Encryption” to exist, but I’ve detected that some devices have it installed, but are not encrypted, so the TS loads the “/ReflectDrivers” Switch and causes a system hang (luckily a force shutdown takes the machine back to previous OS, I’m upgradint 1703 to 1803.

        Thanks!

        1. StaffIn that case , instead of folder please use registry value to detect if device is encrypted or not.
          HKEY_LOCAL_MACHINE\SOFTWARE\McAfee EndPoint Encryption\MfeEpePC\Status

      8. Nice article and I have followed the same. I have created SCCM TS with Windows 10 1809 OS Package and I am deploying it on Laptop where McAfee Drive Encryption is enabled. Now as per this article, I have added TS Variable OSDSetupAdditionalUpgradeOptions with value “Setup.exe /ReflectDrivers “C:\Program Files\McAfee\Endpoint Encryption\OSUpgrade”

        OS In place upgrade is started using Software Center, but what I am wondering is that my Laptop drive encryption is not compatible with Windows 10 1809 version, then how come OS Upgrade started…? It should have failed?

      Join the discussion

      Your email address will not be published. Required fields are marked *

      Related guides

      Intune

      Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

      Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

      AC Anoop C Nair 9 min read
      Intune

      2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

      Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

      AC Anoop C Nair 10 min read
      Intune

      2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

      Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

      AC Anoop C Nair 8 min read
      SCCM

      ConfigMgr 2603 Introduces New Early Update Enrollment Process

      Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

      AC Anoop C Nair 3 min read