Reply to Message

View discussion in a popup

Replying to:
LittleNickey
Enthusiast
Enthusiast

Nice script!

Does the script save the report locally only temporarily or is it kept after mail has been sent?

Can I define where to save the report and charts? The only user defined variables I see are VC, SMTP Server and To Address.

I get this error for the charts, eventhough I put the script in D:\scripts\

Exception calling "SaveImage" with "2" argument(s): "Access to the path 'D:\vCe

nter_CPU_Usage.png' is denied."

At D:\Script\CapacityReport.ps1:648 char:18

+     $Chart.SaveImage <<<< ($FullPath,"png")

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

-- Oskar
Reply
0 Kudos