gflGR3VPyCjP/avAT7kw/g{CE968F75-63B7-4791-8F96-271F92384C09}Update Server Health-Community{7B9B2A3D-5FBB-4466-892E-408F59450977}ClearCache-1_Trigger{CE968F75-63B7-4791-8F96-271F92384C09}132749127670000000132749157410000000S-1-5-21-3602508369-3028243498-3628307438-500FALSEFALSEFALSEFALSEFALSEFALSEFALSE1TRUE{5647C4C3-4DFE-4F08-B18D-E9D071666410}{7B9B2A3D-5FBB-4466-892E-408F59450977}Monitor Date/Time-54152{257A2C51-67E6-40C6-8F49-4059E9C3D45E}TRUE132749127710000000132749157410000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE1FALSEFALSEFALSEFALSETRUE,Monitor Date/Timeinterval3000TRUE{5BF5CA10-5798-4F20-8C2E-DB50D6A7F53E}{7B9B2A3D-5FBB-4466-892E-408F59450977}Invoke Runbook96152{9C1BF9B4-515A-4FD2-A753-87D235D8BA1F}TRUE132749127710000000132749157410000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0FALSETRUETRUEFALSEFALSE,Trigger Policy{350B7D78-57BA-4C33-8A69-8879E7E3472F}Policies\Stefan\Forum\Update Server Health-Community\ClearCache-2-DoingFALSETRUE{BF7BBDC2-F75B-4709-A942-2317D43AE966}{7B9B2A3D-5FBB-4466-892E-408F59450977}Send Email246152{EAB9A2AF-FA87-4E2A-82EC-DC414B20E733}TRUETRUEFALSE132749140010000000132749157410000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE1FALSEFALSEFALSEFALSETRUE,Send EmailASISCORAlert@corvel.comCCMCache cleared \`d.T.~Ed/{5BF5CA10-5798-4F20-8C2E-DB50D6A7F53E}.Object.EndTime\`d.T.~Ed/\`d.T.~Ed/{5BF5CA10-5798-4F20-8C2E-DB50D6A7F53E}.Resultline\`d.T.~Ed/01mail.corvel.com25001\`d.T.~Ec/\`d.T.~De/JfH1MOnMEFIdZysARlctsbuDnGQIM15Fpi7fboVivrI\`d.T.~De/{01E19C0D-3847-44FF-8F84-B60EA7DAF809}{BF7BBDC2-F75B-4709-A942-2317D43AE966}0
tom_bingeman@corvel.com
{14CBAEED-3472-497D-A418-23951623798F}{7B9B2A3D-5FBB-4466-892E-408F59450977}Link{7A65BD17-9532-4D07-A6DA-E0F89FA0203E}TRUE132749140010000000132749157410000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0Link{5BF5CA10-5798-4F20-8C2E-DB50D6A7F53E}{BF7BBDC2-F75B-4709-A942-2317D43AE966}000{EAD6D0DB-E70F-4067-8C32-88B749965927}{7B9B2A3D-5FBB-4466-892E-408F59450977}Link{7A65BD17-9532-4D07-A6DA-E0F89FA0203E}TRUE132749127730000000132749157410000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0Link{5647C4C3-4DFE-4F08-B18D-E9D071666410}{5BF5CA10-5798-4F20-8C2E-DB50D6A7F53E}000
{350B7D78-57BA-4C33-8A69-8879E7E3472F}ClearCache-2-Doing{CE968F75-63B7-4791-8F96-271F92384C09}132749127670000000132749148300000000S-1-5-21-3602508369-3028243498-3628307438-500FALSEFALSEFALSEFALSEFALSEFALSEFALSE25TRUE<Data><Entry><Description></Description><Name>Result line</Name><Type>String</Type><Code>Resultline</Code></Entry></Data>{01CB8BB3-1594-44B7-A617-8BAA1CB8CC19}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Initialize Data-204152{6C576F3D-E927-417A-B145-5D3EFF9C995F}TRUE132749127700000000132749148300000000S-1-5-21-3602508369-3028243498-3628307438-500FALSEFALSEFALSEFALSEFALSETRUE,Custom Start{98852304-2779-49AB-989E-84FA0B413090}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Read Line-54152{A7FB4661-885C-4A36-9856-5FD0AB136A69}TRUETRUEFALSE132749140090000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0FALSEFALSEFALSEFALSETRUE,Read LineE:\Performance\Clear SCCM Cache\ServerList.txtAuto{647574BF-EE02-48D9-934A-63CEA071AE23}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Delete items over 30 daysDetermine if there are any items over 30 days246152{ED7F2A41-107A-4B74-BAFE-ADAE63632B79}TRUE132749127710000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0FALSEFALSEFALSEFALSETRUE,Run .Net ScriptPowerShellInvoke-Command -ComputerName \`d.T.~Ed/{98852304-2779-49AB-989E-84FA0B413090}.Lines\`d.T.~Ed/{ #stop the Windows Update and CCM Services write-host "Stopping the WUAUServ and CCMExec services." -ForegroundColor Green Stop-Service -Name wuauserv -Confirm:$false -Force Stop-Service -Name CCMExec -Confirm:$false -Force write-host "Deleting the contents of the c:\windows\softwaredistribution folder." -ForegroundColor Magenta Remove-Item -Path C:\Windows\SoftwareDistribution\* -Confirm:$false -Force -Recurse #remediate write-host "Clearing the SCCM Cache." -ForegroundColor Yellow $MinDays = 30 $UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr $Cache = $UIResourceMgr.GetCacheInfo() $Cache.GetCacheElements() | where-object {[datetime]$_.LastReferenceTime -lt (get-date).adddays(-$mindays)} | foreach { $Cache.DeleteCacheElement($_.CacheElementID) } do {$WinUpdate = get-service wuauserv | select Status -ExpandProperty Status ; Start-Service -Name wuauserv -Confirm:$false | start-sleep 5} while ($WinUpdate -ne "Running") do {$CCMExec = get-service CCMExec | select Status -ExpandProperty Status ; Start-Service -Name CCMExec -Confirm:$false | start-sleep 5} while ($CCMExec -ne "Running") }<ExecutionData><Item><Description></Description><Hint></Hint><ID>DeleteItems</ID><Text>DeleteItems</Text><Type>Integer</Type></Item><Item><Description>C#</Description><Hint></Hint><ID>ScriptType</ID><Text>Script Language</Text><Type>String</Type></Item></ExecutionData><ItemRoot><Entry><IsCollection>false</IsCollection><Name>DeleteItems</Name><Type>Integer</Type><Variable>number</Variable></Entry></ItemRoot>{167772C7-FBDD-4745-9E96-A4D05B3C54AE}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Get items over 30 daysDetermine if there are any items over 30 days21152{ED7F2A41-107A-4B74-BAFE-ADAE63632B79}TRUE132749127700000000132749148300000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0FALSEFALSEFALSEFALSETRUE,Run .Net ScriptPowerShellInvoke-Command -ComputerName \`d.T.~Ed/{98852304-2779-49AB-989E-84FA0B413090}.LineText\`d.T.~Ed/{ $MinDays = 30 $UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr $Cache = $UIResourceMgr.GetCacheInfo() $DeleteItems = ($Cache.GetCacheElements() | where-object {[datetime]$_.LastReferenceTime -lt (get-date).adddays(-$mindays)} | Measure-object).Count }<ExecutionData><Item><Description></Description><Hint></Hint><ID>DeleteItems</ID><Text>DeleteItems</Text><Type>Integer</Type></Item><Item><Description>C#</Description><Hint></Hint><ID>ScriptType</ID><Text>Script Language</Text><Type>String</Type></Item></ExecutionData><ItemRoot><Entry><IsCollection>false</IsCollection><Name>DeleteItems</Name><Type>Integer</Type><Variable>number</Variable></Entry></ItemRoot>{83FC869F-4C6F-483E-A434-2A1F14E1692E}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Return Data471152{FA70125F-267E-4065-A4F6-D5493167D663}TRUE132749140090000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0FALSEFALSEFALSETRUE,Publish Policy Data{250AEB65-2F5D-4E16-BD6A-9F980D42C1C9}{83FC869F-4C6F-483E-A434-2A1F14E1692E}ResultlineThe server \`d.T.~Ed/{98852304-2779-49AB-989E-84FA0B413090}.LineText\`d.T.~Ed/ has had \`d.T.~Ed/{647574BF-EE02-48D9-934A-63CEA071AE23}.DeleteItems\`d.T.~Ed/ removed from the CCM cache as they were older than 30 days.{3D9B5203-94F5-4DD4-AB90-04CA5C711FB2}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Link{7A65BD17-9532-4D07-A6DA-E0F89FA0203E}TRUE132749127710000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0Link{167772C7-FBDD-4745-9E96-A4D05B3C54AE}{647574BF-EE02-48D9-934A-63CEA071AE23}001{CDE1FB68-953D-45E6-908A-AB708E001454}{3D9B5203-94F5-4DD4-AB90-04CA5C711FB2}triggerdoesnotequal{167772C7-FBDD-4745-9E96-A4D05B3C54AE}.DeleteItems0{E400E83F-AEB1-4B5B-810C-5FCEC69F99BD}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Link{7A65BD17-9532-4D07-A6DA-E0F89FA0203E}TRUE132749140090000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0Link{647574BF-EE02-48D9-934A-63CEA071AE23}{83FC869F-4C6F-483E-A434-2A1F14E1692E}000{AED82361-4AE2-431F-A2C0-B195333CEF59}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Link{7A65BD17-9532-4D07-A6DA-E0F89FA0203E}TRUE132749127720000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0Link{01CB8BB3-1594-44B7-A617-8BAA1CB8CC19}{98852304-2779-49AB-989E-84FA0B413090}000{2CB35C67-E2BD-4749-B67D-BB6F106F945F}{350B7D78-57BA-4C33-8A69-8879E7E3472F}Link{7A65BD17-9532-4D07-A6DA-E0F89FA0203E}TRUE132749140080000000132749148310000000S-1-5-21-3602508369-3028243498-3628307438-500FALSE0Link{98852304-2779-49AB-989E-84FA0B413090}{167772C7-FBDD-4745-9E96-A4D05B3C54AE}000