Quantcast
Viewing all articles
Browse latest Browse all 21975

Executing powershell scripts via Task Scheduler

Hi,

I have a powershell script that I wrote that when executed from the shell works fine but when executed from task scheduler does not work.

In my script, an email is sent out based on the results of the execution.  When I run this from the shell, email goes out, when scheduled, no email and there is no indication of errors having occurred anywhere in the system.

Has anyone run into a similar issue?

I did change my powershell execution policy to be unrestricted (both in the x86 and x64 consoles).  I am running Windows 2008 R2.

Thanks - Greg.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>