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

Re: Run PowerCLI Script everyday and send output to mail

$
0
0

I used a scheduled windows task to run my powerCLI scripts on a daily basis. The script runs from one of our management servers that has powerCLI installed.

 

It gathers some simple information about VM's and places them in a text file which is in turn emailed to me every morning so I get a quick view of my VMs health via email.

Use the Send-MailMessage cmdlet in powershell to send emails from within your script. MSDN or powershell help will give you all the syntax you need.


Viewing all articles
Browse latest Browse all 229635

Trending Articles