Sladescross's Blog

Blogging about Sharepoint related stuff

Clear Sharepoint Config Cache Using PowerShell October 5, 2011

Filed under: Cache,Clear Config Cache,Config Cache — sladescross @ 9:47 pm

http://blog.fpweb.net/doing-battle-with-user-profile-synchronization/
Stop-Service “SPTimerV4″
$dirguid = get-childitem C:\ProgramData\Microsoft\SharePoint\Config\
$dir = “C:\ProgramData\Microsoft\SharePoint\Config\$dir” + $dirguid.name
get-childitem $dir -include *.xml -recurse | foreach ($_) {remove-item $_.fullname} | Out-File $dir\cache.ini
Start-Service “SPTimerV4″get-childitem $dir -include *.xml -recurse | foreach ($_) {remove-item $_.fullname}  | Out-File $dir\cache.ini
Start-Service “SPTimerV4″

 

 
Follow

Get every new post delivered to your Inbox.

Join 63 other followers