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

Re: Powershell/PowerCLI Dynamic Email Message Body with Datastores

$
0
0

Got the following:

 

Send-MailMessage : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Body'. Specified method is not supported.

At C:\scripts\VMware\DatastoreCheck.ps1:76 char:69

+ Send-MailMessage -To $Email -Subject $MailSubject -BodyAsHtml -Body (ConvertTo-H ...

+                                                                     ~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Send-MailMessage], ParameterBindingException

    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.SendMailMessage


Viewing all articles
Browse latest Browse all 188195

Trending Articles



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