This Powershell script will stop the services and delete the file(s) in question including
C:\ProgramData\Microsoft\Windows\CapabilityAccessManager\CapabilityAccessManager.db-wal.
Be aware that this MUST be run "As administrator".
Guess you could set up a Scheduled Task that runs it say once a day or something.
C:\ProgramData\Microsoft\Windows\CapabilityAccessManager\CapabilityAccessManager.db-wal.
Be aware that this MUST be run "As administrator".
Code:
Write-Output "Stop the 'Capability Access Manager Service'"$id = Get-WmiObject -Class Win32_Service -Filter "Name='camsvc'" | Select-Object -ExpandProperty ProcessIdWrite-Output "Found service with process id: $id"$process = Get-Process -Id $idStop-Process $process.Id -Force -VerboseStart-Sleep 5 -VerboseWrite-Output "Stop the 'SuperFetch (SysMain) Service'"$id = Get-WmiObject -Class Win32_Service -Filter "Name='SysMain'" | Select-Object -ExpandProperty ProcessIdWrite-Output "Found service with process id: $id"Write-Output "Stop the 'Geolocation Service'"$id = Get-WmiObject -Class Win32_Service -Filter "Name='lfsvc'" | Select-Object -ExpandProperty ProcessIdWrite-Output "Found service with process id: $id"Write-Output "Delete the large files from: 'C:\ProgramData\Microsoft\Windows\CapabilityAccessManager'"Remove-Item "C:\ProgramData\Microsoft\Windows\CapabilityAccessManager\*"Start-Sleep 5 -VerboseWrite-Output "Re-start the 'Capability Access Manager Service'"Start-Service -Name "camsvc"Start-Sleep 5 -VerboseWrite-Output "Re-start the 'SuperFetch (SysMain) Service'"Start-Service -Name "SysMain"Start-Sleep 5 -VerboseWrite-Output "Re-start the 'Geolocation Service'"Start-Service -Name "lfsvc"Start-Sleep 5 -VerboseWrite-Output "Done"
Statistics: Posted by jsmorley — Yesterday, 3:16 pm