79371417

Date: 2025-01-20 13:13:23
Score: 1
Natty:
Report link

Had the same issue. I ended setting up the ScheduledJob so that it would run a .bat file that itself runs the .ps1 script to send email.

Here is an example of a .bat used :

@Echo Off
powershell.exe -file C:\path\to\email_job.ps1

You'd just have to point to the .bat in your ScheduledJob

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Errord