VMware Cloud Community
deepeshsk14
Contributor
Contributor

Export CSV having specific worksheet for specific Vcenter

Hii,

I need to extract a vm inventory of multiple Vcenters via single script.

But it should be in a single .CSV file having different specific worksheet (specific for Vcenter).

A help will be appreciated.

Thanks!

 

0 Kudos
7 Replies
LucD
Leadership
Leadership

Afaik, a CSV can not have multiple worksheets


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

0 Kudos
deepeshsk14
Contributor
Contributor

please suggest me a alternative for this.

because export-excel not working here

0 Kudos
LucD
Leadership
Leadership

What is not working?
You really have to show what you are trying to do, I can't guess what you are doing.


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

0 Kudos
deepeshsk14
Contributor
Contributor

i mean to say, i need to export single sheet of inventory for multiple vcenters but it should have specific worksheet for specific vcenter.
0 Kudos
LucD
Leadership
Leadership

That is still confusing.

Trying to understand what you actually want.
Is it something like this?
- all output to an Excel spreadsheet (XLSX file)

- in that spreadsheet a worksheet per vCenter


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

0 Kudos
deepeshsk14
Contributor
Contributor

that's correct.

please help

0 Kudos
LucD
Leadership
Leadership

Ok, in that case can you explain what you mean by "because export-excel not working here"


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

0 Kudos