VMware Cloud Community
sredo26
Contributor
Contributor

Import VM folder structure from a csv function Get-InventoryPlus

I have created a csv report with the get-InventoryPlus function of the old vcenter folder structure to be able to export it with the following format:

NameBluePath
Folder_Name_1/Folder_new_datacenter/Folder_Name_1
Folder_Name_2/Folder_new_datacenter/Folder_Name_1/Folder_Name_2

 

The folder structure has a multiple levels. The code found has not worked:
https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Export-Import-selective-Folder-structu...

https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Export-Import-Folder-Structure/m-p/529...

https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Folder-migration/m-p/1635752#1334740

Any recomendation?

Thanks.

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

You will have to expand a bit on the "The code found has not worked"
Error messages?
Folder created in the wrong place?

Does the BluePath in the CSV reflect the full path to a folder?
How are your VM & Template folders organised?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos