I need assistance with scheduling a task in Exchange 2013 on Server 2016. I have a script that clears out Exchange logs. The script runs fine but I’m having issues getting it to run from the task scheduler.<\/p>\n
I think my problem is that it needs to be run inside EMS and not powershell but I’m not sure what the correct arguments should be to make that wok.<\/p>","upvoteCount":2,"answerCount":10,"datePublished":"2018-02-05T15:28:15.000Z","author":{"@type":"Person","name":"martinsaunders7874","url":"https://community.spiceworks.com/u/martinsaunders7874"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi everyone.<\/p>\n
I need assistance with scheduling a task in Exchange 2013 on Server 2016. I have a script that clears out Exchange logs. The script runs fine but I’m having issues getting it to run from the task scheduler.<\/p>\n
I think my problem is that it needs to be run inside EMS and not powershell but I’m not sure what the correct arguments should be to make that wok.<\/p>","upvoteCount":2,"datePublished":"2018-02-05T15:28:16.000Z","url":"https://community.spiceworks.com/t/need-help-with-scheduling-a-task/632920/1","author":{"@type":"Person","name":"martinsaunders7874","url":"https://community.spiceworks.com/u/martinsaunders7874"}},{"@type":"Answer","text":"
You would need to post the script to provide more assistance. Most of the scripts to clean exchange logs do not require any specific Exchange command but if you do you can try adding the following to the beggining of the script:<\/p>\n