Flush 2012 SCOM Agent Cache

By |2017-12-07T10:49:01+00:00March 12th, 2014|PowerShell, Windows|0 Comments

Here’s a handy command you can run in PowerShell on a Server with a SCOM 2012 agent to flush its cache , saves you a bit of time instead of stopping the SCOM the service and deleting files/folders.

Net Stop “HealthService”
get-childitem -recurse -Path “C:Program FilesSystem Center Operations ManagerAgentHealth Service State” | remove-item -force -recurse
Net Start “HealthService”

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.