
HP has pulled an HP OneAgent software update for Windows 11 that mistakenly deleted Microsoft certificates required for some organizations to log in to Microsoft Entra ID, disconnecting them from their company's cloud environments.
The bug was discovered by Patch My PC's Rudy Ooms, who traced it to a silent, background update deployed by HP to its AI PC devices.
According to Ooms, systems that installed the HP OneAgent version 1.2.50.9581 automatically executed a cleanup package named SP161710. The package included an install.cmd script that was designed to remove any remnants of HP's 1E Performance Assist software.
One of the subroutines in this script would search for and delete any certificate containing the "1E" substring in its subject, issuer, or friendly name. However, a script like this is risky as it could lead to false positives and delete certificates it was not designed to target.

Source: BleepingComputer
When a device joins Microsoft Entra ID (Azure AD) or Intune, Microsoft issues a "MS-Organization-Access" certificate specific to an organization's tenant. This certificate is stored in the Windows certificate store and is now required to properly authenticate against Entra ID.
For a subset of users, Ooms said their "MS-Organization-Access" certificate had a thumbprint containing the "1E" substring, which caused HP's cleanup script to delete the certificate.

Source: Patch My Pc
Once the certificates were removed, devices immediately disconnect from Entra ID and could no longer log in with their credentials.
"The whole Entra/Azure AD Join was gone!," explains Ooms. "With it, the devices had silently fallen out of the cloud. The whole trust between Windows and Entra ID disappeared."
Ooms confirmed from the logs that the OneAgent's update instructions came directly from HP's AWS IoT infrastructure.
Limited impact
Ooms says that because each organization receives a unique certificate, there is only a 9.3% chance that certificates contain the "1E" chain in the Subject field. As the cleanup script was only pushed out to HP AI PCs, the impact is likely even smaller.
Furthermore, while the faulty script's most visible effect was on Microsoft Entra ID authentication, it may also have removed other legitimate certificates used by different platforms.
In a statement to BleepingComputer, HP confirmed that it had pulled the problematic update and stated that it is assisting impacted customers.
"HP is aware of a potential issue affecting some HP AI PCs related to a recent over the air update," HP told BleepingComputer. "The update is no longer available and will not affect more AI PCs. We're investigating the issue and working closely with impacted customers on mitigation."
Ooms says that those devices that are impacted by the faulty script now require a manual recovery process to be able to rejoin the domain, and shared the following steps for those with local access to the device:
- Sign in with the local admin (LAPS) account.
- Run a cleanup script created by Ooms that removes all Intune enrollment data, which will be recreated in the following steps.
- Rejoin the device to Entra ID.
Ooms' article also describes an additional method for remotely fixing a device using Microsoft Defender's Live Response feature.
Break down IAM silos like Bitpanda, KnowBe4, and PathAI
Broken IAM isn't just an IT problem - the impact ripples across your whole business.
This practical guide covers why traditional IAM practices fail to keep up with modern demands, examples of what "good" IAM looks like, and a simple checklist for building a scalable strategy.





Comments
ken_smon - 2 months ago
Wow. Sloppy coding.
This is the kind of script I may write as a one-off when I know all the inputs.
This WILL have deleted other certs. The ones related to Entra may have been the most obvious ones.
deltasierra - 4 weeks ago
*face palm* Any kind of script that's going to delete ANYTHING should be pointed very narrowly in scope. This normally doesn't need to be said, so I have to wonder if this is a case of generative AI slop.
BTW, most people don't need HP OneAgent -- it's safe to uninstall.