Hello Stefan Bretschneider,
After the April 2026 cumulative update KB5082198, some environments have reported issues where PowerShell scripts cannot access certificate private keys until the certificates are re‑imported. This behavior is linked to changes in cryptographic provider handling introduced around CVE‑2024‑30098 and KB5073121, which tightened how CSP/CAPI and KSP/CNG providers interact with stored certificates.
The driver behind this is that certain certificates imported under older provider contexts may not expose their private keys correctly after the update. Re‑importing the PFX re‑binds the certificate to the updated provider stack, which explains why your workaround is effective.
For diagnostics, you can enable CAPI2 logging in Event Viewer to capture detailed certificate access traces, which will help confirm whether the provider mismatch is the root cause. If you rely on automated scripts, re‑importing certificates proactively or updating them through AD CS with the latest provider settings may prevent recurrence.
I hope the response provided some helpful insight. If you find this answer useful, please hit “accept answer” so I know it addressed your concern.
Jason.