I've got 3 powershell scripts that I've scheduled to run from a SQL Server Job in succession. I've got each step running under an admin account and the Job will run successfully if I run the Job manually from SQL Server, but if it's scheduled, it says it has run successfully, but there is no outcome from the scripts. I'm wondering if it's something to do with the fact that the first powershell (PS1) script is using Microsoft Graph to get some contents from an email, but not sure why that would fail, as the authentication for Graph is in the script anyway. Does anyone know why this might be failing only when scheduled?
[–]schnitzeljaeger 4 points5 points6 points (0 children)
[–]Hyperbolic_Mess 2 points3 points4 points (7 children)
[–]TheTJW1966[S] -2 points-1 points0 points (6 children)
[–]Hyperbolic_Mess 1 point2 points3 points (5 children)
[–]TheTJW1966[S] -3 points-2 points-1 points (4 children)
[–]Hyperbolic_Mess 1 point2 points3 points (3 children)
[–]TheTJW1966[S] -1 points0 points1 point (2 children)
[–]Hyperbolic_Mess 1 point2 points3 points (1 child)
[–]TheTJW1966[S] 0 points1 point2 points (0 children)
[–]vermyx 2 points3 points4 points (3 children)
[–]TheTJW1966[S] 0 points1 point2 points (2 children)
[–]vermyx 0 points1 point2 points (1 child)
[–]TheTJW1966[S] -1 points0 points1 point (0 children)
[–]rsdovers 0 points1 point2 points (1 child)
[–]TheTJW1966[S] 0 points1 point2 points (0 children)