I am looking for a script that will report on all data in vcenter and where everything lives (Folders, datacenters, cluster, resource pools, vm's, roles & permissions).
Anything out there or should I start from scratch..?? Thank you for any help in advance..
As I understand your question correctly, you are looking for a script that reports in which datacenter, cluster, folder etc. VMware inventory items are. I don't know about a script that is allready published and does what you want. But I have made a script that does this for VM's. Maybe you can use my script to expand it to your needs. As it is painfully slow to loop through the VM's and retrieve the datacenter and cluster for each VM, my script does it the other way around. It loops through the datacenters and clusters, gets all the VM's and adds the datacenter and cluster information to the VM object.
As the script contains square brackets and the forum software has problems with them, I attached my script to this post.
Regards, Robert
You could also have a look at Maish's vCenter PowerCLI Migration Script post.
He uses CSV files to store information about the vCenter he is migrating.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
