Export all VM's config (vCPU, RAM, Disk, VLAN/Switch)

Allan Ellegaard 191 Reputation points
2021-01-21T16:22:52.357+00:00

Hi all.

Is it not possible to run a export of all configured VM's?

I'm thinking of how to ensure a backup scenario.
So that an run stat of all VM's could be exported everyday.

This export shall be used to recreate all VM's config at a new hyper-v server.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,524 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,613 questions
Windows Server Backup
Windows Server Backup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Backup: A duplicate copy of a program, a disk, or data, made either for archiving purposes or for safeguarding valuable files from loss should the active copy be damaged or destroyed.
464 questions
0 comments No comments
{count} votes

Accepted answer
  1. Allan Ellegaard 191 Reputation points
    2021-01-25T21:54:10.237+00:00

    Hi All

    Thank you for some inputs.

    We did manage it by building a bit more to this script:
    https://gallery.technet.microsoft.com/scriptcenter/Export-Hyper-V-Configuratio-757442c8

    Our needs was about - VM name, vCPU, Ram + min./max., VLAN, VHD disk, settings.

    • That finished our needs for this round.

    I think we will build it a bit bigger, but it is function for us.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.4K Reputation points MVP
    2021-01-21T16:27:49.26+00:00

    Yes, it can be done.
    https://video2.skills-academy.com/en-us/powershell/module/hyper-v/export-vm?view=win10-ps

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Mico Mi 1,921 Reputation points
    2021-01-22T07:12:34.167+00:00

    Hi,
    This doc may meet your needs:
    http://www.macaalay.com/2019/01/24/exporting-hyperv-vm-information-from-virtual-machine-manager/
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Thanks for your time!
    Best Regards,
    Mico Mi

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments