Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214415

Re: Export CSV doesn't update the file when it runs via Task Scheduler

$
0
0

I would now propose to take the next step and include a PowerCLI cmdlet.

Something like this

Get-View -ViewType "HostSystem" -property Name | Select Name | Export-Csv C:\Scripts\HostsUpTime.csv

I just noticed, you don't seem to have a

add-pssnapin VMware.VimAutomation.Core

in your script. Did you leave that out on purpose ?

If the snapin is not loaded you will not be able to use PowerCLI cmdlets.


Viewing all articles
Browse latest Browse all 214415

Trending Articles



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