hi all
im trying to tweak a pretty simple powershell script that calls on another powershell script and then emails the results... the script gathers datastore information and calculates the percentage free.
but im having issues where its spitting out a error that says
Send-MailMessage : A positional parameter cannot be found that accepts argument 'C:\Scripts\PowerCLI\VMFS_unmap\percentfree.ps1'.
At C:\Scripts\PowerCLI\VMFS_unmap\VMware_measurecommand_plink_test.ps1:17 char:17
+ Send-MailMessage <<<< -From "VMFS_unmap " -To "me" -Subject "VMFS unmap confirmation - Completed" -Body $body $percentfree-SmtpServer smtpserver
+ CategoryInfo : InvalidArgument: (:) [Send-MailMessage], ParameterBindingException+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SendMailMessage
script looks like this
$body = Measure-Command {C:\Scripts\...
<<<< -From "VMFS_unmap