Tested on : Plesk Obsidian, Windows 2012 R2
Few days back i was looking into a way to find the cron details of a customer and once its fetched remove the crons created by that user.Through GUI, it can be done in 2 ways :
1. Go to Tools & Settings > Scheduler Tasks -or- Domains > Schedule Tasks
2. Login to the server > Open Task scheduler (taskschd) and Look into the task with description. You will get the domain id there
But the above mentioned process is quite cumbersome. So after digging a lot, I was able to figure it out using Powershell.
To get all the cron details of a particular Customer :
& "$Env:Plesk_Bin\Crontabmng.exe" get "CustomerName"
To Remove all the crons of a particular Customer :
& "$Env:Plesk_Bin\Crontabmng.exe" remove "CustomerName"
Comments
Post a Comment