Can't export VMs

Salam ELIAS 302 Reputation points
2026-11-15T13:29:32.3066667+00:00

Hi, I have 3 VMs which I need to export for backup purposes. I right click each VM > Export > Choose a hard drive where I have all privileges, it starts exporting it reaches around then I get the following error message dispalyed

User's image

Not sure why access is denied, is it for my user or any other user?

Syetem account running hyper-V management has full control on the folder where I am exporting

User's image

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-15T13:29:49.5733333+00:00

    0x80070005 in Hyper-V export commonly indicates a file permission problem on the VM’s files, especially the virtual hard disk or checkpoint files.

    Check these items:

    1. Identify whether the VM has checkpoints or AVHD/AVHDX files.
      • Export includes the VM configuration, VHD/VHDX, and checkpoint files.
      • If permissions are wrong on any .vhd, .avhd, or related files, export can fail.
    2. Verify the VM’s ID and file permissions.
      • The VM has a unique Virtual Machine ID.
      • If that VM identity is missing from the security permissions on the .vhd or .avhd file, Hyper-V operations can fail with 0x80070005.
    3. Add the VM identity back to the affected disk or checkpoint file.
      • Open an elevated Command Prompt.
      • Use the VM ID shown in the error or retrieve it from Hyper-V/PowerShell.
      • Grant Full Control to the VM identity on the affected file:
    icacls <Path of .vhd or .avhd file> /grant "NT VIRTUAL MACHINE\<Virtual Machine ID>":(F)
    

    Example:

    icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)
    
    1. Retry the export.
      • In Hyper-V Manager, right-click the VM and select Export.
      • Or use PowerShell as Administrator:
    Export-VM -Name <vm name> -Path <path>
    
    1. If the VM is part of a guest cluster using shared VHDS and the error appears during backup/export-related checkpoint activity, also check folder permissions.
      • The folder holding the VHDS files and snapshot files may need additional permissions for the VMMS process.

    This is usually not just about the signed-in user account. It is often the Hyper-V VM identity or VMMS process lacking access to one of the VM disk or snapshot files.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.