This commit is contained in:
2020-09-07 20:18:06 -04:00
parent b28fbf3353
commit 45427cea18
5 changed files with 38 additions and 11 deletions
+2
View File
@@ -0,0 +1,2 @@
## This script will delete runaway CBS logs that can take up 100's of GB on an endpoint
Get-ChildItem -Path "${Env:WINDIR}\Logs\CBS" -File | Where { ( $_.Name -like "CbsPersist_*.log" ) -or ( $_.Name -like "CbsPersist_*.cab" ) } | Remove-Item -Force