Quantcast
Viewing all articles
Browse latest Browse all 230777

Re: move the vm to a folder, In V-center

Hello ,

 

I am trying to reproduce the reported issue but have no success. It seems like you are hitting some corner case which cause Move-VM failure. If you don't mind, could you please report the VMs inventory of the Datacenter where you are trying to move vms in order to create the same inventory in a test environment and reproduce the issue?

 

To report the inventory use the following script:

 

function ReportVMsInventory($parent, $indent) {

   if (-not $parent) { return }

   Write-Output ($indent + "[F] " + $parent)

   $subFolder = get-folder -Location $parent

   foreach ($sf in $subFolder) {

      ReportVMsInventory $sf ($indent + "   ")

   }

   Get-VM -Location $parent | foreach {

      Write-Output ($indent + "   [VM] $($_.Name)")

   }

}

 

ReportVMsInventory (Get-Datacenter CLY | Get-Folder vm) | Out-File c:\temp\inventory.txt

 

Thank You!

Dimitar Milov


Viewing all articles
Browse latest Browse all 230777

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>