You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page.
Turn on more accessible mode
Turn off more accessible mode
Skip Ribbon Commands
Skip to main content
To navigate through the Ribbon, use standard browser navigation keys. To skip between groups, use Ctrl+LEFT or Ctrl+RIGHT. To jump to the first Ribbon tab use Ctrl+[. To jump to the last selected command use Ctrl+]. To activate a command, use Enter.
Site Actions
This page location is:
Ondrej Sevecek's Blog
Ondrej Sevecek's English Pages
Comments
Re: How to import virtual machine into Hyper-V using WMI on Windows 2008 and Windows 2012
Browse
Tab 1 of 2.
View
Tab 2 of 2.
Sign In
Edit
Item
Version History
Manage Permissions
Delete Item
Manage
Ondrej Sevecek's English Pages
Comments
: Re: How to import virtual machine into Hyper-V using WMI on Windows 2008 and Windows 2012
Engineering and troubleshooting by Directory Master!
This Site
This List
Home
Currently selected
Contacts
Quick Posts
Quick Launch
Libraries
Site Pages
Pictures
General
Lists
Links
Posts
Comments
Categories
Quick Posts
Discussions
Surveys
All Site Content
Sorry comments are disable due to the constant load of spam
2
Title
Re: How to import virtual machine into Hyper-V using WMI on Windows 2008 and Windows 2012
Author
ondass
Body
also note that if you need to elaborate and test, you sometimes must delete pending Msvm_PlannedComputerSystem instances that you are not able to completelly import/finish.
To delete all Msvm_PlannedComputerSystem instances without trying to complete their import with the RealizePlannedSystem, you can use the following code snippet:
$vmms = Get-WmiObject MSVM_VirtualSystemManagementService -namespace "root\virtualization\v2"
(gwmi Msvm_PlannedComputerSystem -names root\virtualization\v2) | % { $vmms.DestroySystem($_) }
Attachments
Created at 07/08/2013 17:25 by
Last modified at 07/08/2013 17:25 by