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

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 214415

Trending Articles