Skip Ribbon Commands
Skip to main content

Ondrej Sevecek's English Pages

:

Comments: Export for Hyper-V 2016

Engineering and troubleshooting by Directory Master!
MCM: Directory

Sorry comments are disable due to the constant load of spam

2

Title

Export for Hyper-V 2016

Author

Daniel Hejda

Body

Hello,

If you want a export VM from Hyper-V 2016, you must a change class in WMI to root\virtualization\v2 and you must a set new WMI definition from $vmms.ExportVirtualSystemEx to $vmms.ExportSystemDefinition

New line in script
- $vmms = Get-WmiObject MSVM_VirtualSystemManagementService -Namespace "root\virtualization\v2" #2016

- $vmms.ExportSystemDefinition($vm.Path.Path, $exportDir, $es.GetText(1)) #2016

Attachments

Created at 18/02/2017 10:49 by  
Last modified at 18/02/2017 10:49 by