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

Run PowerCLI Script everyday and send output to mail

$
0
0

Hi,

 

Is there a way to run this script every day (whats the best way, windows schedules task?) and then sending the output to an email adress?

Thats the command;

foreach($vm in get-vm) { get-harddisk -vm $vm| select @{N="VMname";E={$vm.name}},Filename |? {$_.FileName.Split('/')[-1] -match ".*\-[0-9]{6}\.vmdk"} }

 

Thanks


Viewing all articles
Browse latest Browse all 144140

Trending Articles



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