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