Jun 06 2019 08:21 PM
Weird one.
I have a power shell script that emails a PDF . Script works fine when running in isolation (email and attachment are received).
How ever when the script is run from task scheduler, only the email is received. The attachment is not attached.
I have tried the execution policy, but in thinking its a file permission thing from scheduler.(running as domain admin)
Any ideas, hive mind?
Cheers
Jun 06 2019 08:54 PM
Jun 11 2019 01:42 AM
Also ensure the domain admin user has enough permission to write file in local path which you have used in your PS script.
Jun 11 2019 09:21 AM
Why are you running a scheduled task with domain admin privileges?
That is not a good practice.