Flush 2012 SCOM Agent Cache

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”

About the author