Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Unable to send Email through Batch file or Cmd prompt or Task Scheduler

$
0
0

Hello All,

I’ve been stuck at this same issue from past 5 days. The script has no issues and is sending email without any issues when executed from ISE directly.

@ECHO OFF C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -noprofile -executionpolicy RemoteSigned -file D:powershellFedex_Meter_Check1.ps1 PAUSE

Also tried

C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -noprofile -executionpolicy RemoteSigned -file D:powershellFedex_Meter_Check1.ps1 There are no errors when executed from powershell.exe or cmd but no email. Please assist me on this.

submitted by /u/raul824
[link] [comments]

The post Unable to send Email through Batch file or Cmd prompt or Task Scheduler appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles