Flush 2012 SCOM Agent Cache

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

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”