Forgot to add a file!
This commit is contained in:
parent
d271979205
commit
774bce8ec7
12
Private/ClearCCMCache.ps1
Normal file
12
Private/ClearCCMCache.ps1
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue