Quantcast
Channel: VMware Communities : Document List - vSphere PowerCLI
Viewing all articles
Browse latest Browse all 379

A script that returns the date a VM was created

$
0
0

Hello All,

 

 

I am in the process of writing a short script that returns the a VM name, the creator's username, and the date/time that the VM was created. The script then outputs the results to a CSV.

 

The issue is that when the script runs and exports, the name of the VM appears on the wrong line and does not match with the rest of the exported data.

 

Any suggestions on what I can do to fix this?

 

Please see attached files.

 

Thank you for your help,

Gsingh


Viewing all articles
Browse latest Browse all 379

Trending Articles