Description
I am seeing numerous error jobs from something that occurred in my environment and I would like to clean them out of my Monitor App.
Instructions
If you are seeing many error'd import jobs in the CSPro monitor, and would like to remove them, run the following on the CSPro server:
##Warning: This script will remove ALL Import Jobs which are in the error state##
$ImportJobs = Get-ScheduledJob -JobType Import | ? { $_.SystemCreated -eq $true -and $_.Status -eq "Error"};
$ImportJobs | Remove-ScheduledJob;
NOTE: This will need to be run in PowerShell ISE as an Administrator who also has remove permissions to the CSPro SQL databases
Comments
0 comments
Please sign in to leave a comment.