Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Problems with send-mailmessage in scripts run under task scheduler

$
0
0

I have a script which sends notifications to users prior to password expiration.  It works wonderfully when I run it manually.  When run as a scheduled task most of the emails don't get delivered.  I've modified the script to BCC me on all the emails after a spot check revealed that not all users were getting the messages.  While the count varies daily from about 10-50 accounts, the scheduled task only sends 1-4 emails while.

I've also noticed that this script runs in under a minute manually but often runs for over an hour as a scheduled task.

Anyone have any ideas on what might be going wrong?

Just in case it matters, this is being run under PS 2.0 on a W7x64 machine.


Only dead fish swim with the current.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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