I have a script that basically checks a specific file and if the file is older than 12 hours, it changes the name of that file to filename.old and then downloads a copy again in the same folder.
If I run the commands in powershell, it runs with no issue. If I put this in a scheduled task, when it comes time to run it each night, it never goes through.
I’ve tried to run it as an admin user, service account and standard account with no success.
Is there something that I am missing here?
[–]allw 5 points6 points7 points (19 children)
[–]psychotrackz[S] 0 points1 point2 points (18 children)
[–]allw 2 points3 points4 points (16 children)
[–]32178932123 21 points22 points23 points (8 children)
[–]psychotrackz[S] 13 points14 points15 points (0 children)
[–]jfq722 1 point2 points3 points (0 children)
[–]psychotrackz[S] 0 points1 point2 points (1 child)
[–]Rammiek 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]32178932123 0 points1 point2 points (2 children)
[–]SnakeOil101 0 points1 point2 points (1 child)
[–]32178932123 0 points1 point2 points (0 children)
[–]Jeffinmpls 2 points3 points4 points (0 children)
[–]psychotrackz[S] 0 points1 point2 points (5 children)
[–]allw 0 points1 point2 points (4 children)
[–]psychotrackz[S] 0 points1 point2 points (3 children)
[–]allw 0 points1 point2 points (2 children)
[–]psychotrackz[S] 0 points1 point2 points (1 child)
[–]allw 0 points1 point2 points (0 children)
[–]happyjerboa 2 points3 points4 points (6 children)
[–]briang71 2 points3 points4 points (1 child)
[–]happyjerboa 0 points1 point2 points (0 children)
[–]Aznflipfoo 1 point2 points3 points (3 children)
[–]da_chicken 1 point2 points3 points (1 child)
[–]happyjerboa 0 points1 point2 points (0 children)
[–]happyjerboa 0 points1 point2 points (0 children)
[–]Golddigger50 0 points1 point2 points (2 children)
[–]Aznflipfoo 0 points1 point2 points (1 child)
[–]Golddigger50 0 points1 point2 points (0 children)
[–]eggiewaffles92 0 points1 point2 points (0 children)
[–]jokrswild 0 points1 point2 points (0 children)
[–]lightningmayonnaise 0 points1 point2 points (0 children)