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.