Hyper-V saved-state VM migration fails due to missing encryption keys- how to export and import VM state encryption keys?

Harry Taylor 0 Reputation points
2026-09-11T14:25:30.1633333+00:00

Moving saved-state virtual machines to a new Hyper-V host fails because the destination host cannot decrypt the saved state files. Diagnostics show that the target host lacks the original host security keys required to unlock the encrypted state data on storage.

How do we export and import VM state encryption keys between hosts?

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Newest
  1. Hoang Le 4,665 Reputation points Independent Advisor
    2026-09-11T14:59:55.9733333+00:00

    Hello Harry Taylor,

    The failure you are seeing when moving saved‑state VMs is expected behavior because Hyper‑V encrypts the saved state files with host‑specific keys. A destination host cannot decrypt them unless you explicitly export and import the VM state encryption keys. The supported method is to use the Protect-VM and Unprotect-VM cmdlets in PowerShell, which manage the Key Protector objects tied to each VM. On the source host, you run Export-VMKeyProtector -VMName <VMName> -Path <file> to generate the key package. Then copy that package securely to the target host and run Import-VMKeyProtector -VMName <VMName> -Path <file> before attempting to start or restore the VM. This ensures the destination host has the same cryptographic material needed to unlock the saved state.

    It is critical that the Certificate and Key Storage provider on the target host is healthy and that the VM configuration files are consistent with the imported protector. Never attempt to manually copy or edit the encrypted state files, as that will corrupt the VM. After importing, validate with Get-VMKeyProtector that the protector is present, and then retry the move operation. This is the Microsoft‑supported way to transfer VM state encryption keys safely between Hyper‑V hosts and restore normal operations.

    If my answer is useful for you, please hit Accept the answer to support me.

    Thank you,

    HL.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.