Forgot to add a file!

This commit is contained in:
Zachary Gorman 2024-07-26 11:44:25 -07:00
parent d271979205
commit 774bce8ec7

12
Private/ClearCCMCache.ps1 Normal file
View file

@ -0,0 +1,12 @@
function Invoke-ClearCCMCache($ComputerName) {
#Checks if the path is accessible to the requested PC
if(Test-Path \\$ComputerName\C$){
Remove-Item \\$ComputerName\C$\Windows\ccmcache -Recurse
Write-Host "Removed \\$ComputerName\C$\Windows\ccmcache" -ForeGround Green
}else{
Write-Host "Could not connect to [\\$ComputerName\C$]" -ForeGround Red
}
}