Jump to content
Software FX Community

coesum

Members
  • Posts

    3
  • Joined

  • Last visited

coesum's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you - somehow I managed to get an older version of that DLL registered - probably from a trial verison I was playing with.
  2. Is it possible to send the emails from send-mail to multiple recipients and if so how? I've tried separating the users by comma & semi-colon and only the first person receives the email. The quick start guide makes mention of multiple recipients but does not say how to do it. TIA
  3. I am not certain if this is PowerGadgets related or PS, but when I attempt to create an out-chart using a multi-line PS command it locks the script until I close the chart and then continues but in unexpected ways. For instance the line Get-WmiObject -class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 ` -ComputerName EMAIL | Select-Object MailboxDisplayName, Size, TotalItems ` | sort Size -descending | select -first 20 | out-chart -Values Size, ` TotalItems -Label MailboxDisplayName -template EmailReport | send-mail ` -From PowerGadgets@domain.com -To user@domain.com -subject ` "Top 20 Email Users" -Text "This is a test" -server email.domain.com creates the Outchart correctly, but stops at that point and when I close the chart it emails the user but does not include the chart. However if I put it all on one line like so Get-WmiObject -class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName EMAIL | Select-Object MailboxDisplayName, Size, TotalItems | sort Size -descending | select -first 20 | out-chart -Values Size, TotalItems -Label MailboxDisplayName -template EmailReport | send-mail -From PowerGadgets@jdomain.com -To user@domain.com -subject "Top 20 Email Users" -Text "This is a test" -server email.domain.com The script runs and the user gets the chart in email as expected. Should I be doing a different method for multilining for readability?
×
×
  • Create New...