Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019 01:56 PM
That is a different question entirely!
🙂
And what is really asking is how can I remove Remediation Target Rule 'X' from all of my VITS? That is a bit more complicated. You will probably need a script for this one. So....
(You will need to test this out this script thoroughly.)
var rule_sys_id = '2664a291db896b0020949015ca961951';//Find and replace from your intance
var update = false;
var gr = new GlideRecord('sn_vul_vulnerable_item');
gr.addEncodedQuery('ttr_applied_rule='+rule_sys_id);
gr.query();
while(gr.next()){
if(update){
// +++Test in your dev instance +++
// Let the schededule job 'Evaluate remediation targets' run and see what happens
/*
gr.ttr_calculated = false;
gr.ttr_target_date = '';
gr.ttr_status = '';
gr.ttr_applied_rule = '';
gr.update();
*/
}else{
gs.info('This would update: ' + gr.number);
}
}