Hi all,
I'm trying to create a power shell monitor to achive a round trip mail to gmail from our internal exchange server and back, i've written a power shell script that does exactly what i need when run manually, but when i try to implement it within APM it is just stuck on the bolded line (i'll publish the full script once this is resolved):
$ol = New-Object -comObject Outlook.Application
$mail = $ol.CreateItem(0)
$Mail.Recipients.Add("test@gmail.com")
$Mail.Subject = "Solarwinds Gmail Round Trip Check"
Write-Host 'Statistic: ' $Mail.Subject
exit(0)
does anyone have an idea why this happens?