- [Reverted] - Added warning on incorrect
CacheType = 'Orphaned'
in conjunction withCleanupType = 'Tombstoned'
parameter usage. - [Breaking] - Removed the multiple value usage in
CleanupType
parameter. Only one value can be used at a time. (Issue #20) @mbradley73. - Fixed
Automatic
cleanup exit condition. (Issue #20, Issue #21) @mbradley73 and @Life-of-Roy. - Added
Total Found
andTotal Deleted
counters. - Added more explicit self-help comments.
- Fixed a bunch of typos and grammar issues.
- Added warning on incorrect
CacheType = 'Orphaned'
in conjunction withCleanupType = 'Tombstoned'
parameter usage (Issue #20) @mbradley73.
- Fixed one instance of
ScriptSection
parameter being passed toWrite-Log
as{CmdletName}
instead of{ScriptSection}
- Fixed
FreeDiskSpaceThreshold
terminating the script ifAutomatic
cleanup type is not selected and free disk space is over threshold. - Renamed default log to
Invoke-CCMCleanup
ifLogSource
is not specified.
- Fixed
Error getting cached element
forPackage
type - Added
ListOnly
CleanupType option
- [Breaking] Completely rewritten, functionality has changed
- [Breaking] Renamed
CleanupActions
toCacheType
- [Breaking] Added
CleanupType
parameter withAutomatic
mode for cache cleanup - Fixed Get-CimInstance : Invalid class @idrositis
- Fixed Error On Line 831 @SCCMWalker
- Fixed Not detecting or removing most content @PhilAitman
- Added a lot of optimizations under the hood
- Renamed script to
Invoke-CCMCacheCleanup
to as per PowerShell verb requirements - Moved the the
MEM.Zone
repo. Old location will no longer be maintained - Changed links to
MEM.Zone
. Links redirects will follow.
- Fixed skip cache bug with LastReferenceTime by changing $OlderThan date to UTC.
- Fixed skip cache bug where script handles only 'Install' action type.
- Fixed error on ContentID with multiple CacheElementIDs
- [Breaking] Changed the logic of the Get-* functions
- [Breaking] Changed the logic of the Remove* functions
- [Breaking] Changed the parameter name of the Remove-CacheElementFunction function
- Added Orphaned WMI cache cleanup (Previously it was disk only)
- Some code cleanup
- Fixed Get-Help functionality.
- Moved written requirements to #Required statement
- Added full Get-Help support
- Code cleanup
- Fixed
Write-log
inconsistencies - Fixed Incorrect size for orphaned items cleanup
- Fixed
00:00:00
time in support center log viewer - Changed task category to 'None'
- Simplified log naming and source by merging to $script:LogName and $script:LogSource variables only
- Simplified Write-Log parameter requirements by removing the requirement for $Source and using $ScriptSection
- Changed Write-Log to use $script:Section by default instead of $Source. (It can still be specified if needed)
- Added option to log debug messages
- Added event source deletion if the event log source already exists
- Moved release log to separate markdown file
- Fixed division by 0
- Added basic debug info
- Fixed should run bug
- Added ReferencedThreshold
- Fixed lots of bugs
- Added better logging and logging options by adapting the PADT logging cmdlet. (Slightly modified version)
- Added support for verbose and debug to the PADT logging cmdlet
- Added more cleaning options
- Added
LowDiskSpaceThreshold
option to only clean cache when there is not enough space on the disk. - Added
SkipSuperPeer
, for Peer Cache 'Hosts' - Added
ReferencedThreshold
, for skipping cache younger than specified number of days - Added
ConfigurationItem
support - Fixed persisted cache cleaning, it's not removed without the RemovePersisted switch
- Fixed orphaned cache cleaning and it's not a hack anymore
- Fixed error reporting
- Moved file log in
$Env:WinDir\Logs\Configuration Manager\Clean-CCMClientCache.log
- Optimized for speed
- Optimized the functionality by splitting correctly into functions
- Optimized Cmdlets to be module friendly
- Optimized by complete re-write
- Fixed first time run logging bug @Walker
- Fixed remove package bug, better logging @ChristopherWinney
- Fixed
TotalSize
decimals - Fixed
NULL
ContentID - Added eventLog logging support
- Added check for not downloaded Cache Items
- Added Orphaned cache cleanup
- Added Improved logging
- Added Basic error Management
- Cleans the configuration manager client cache of all unneeded with the option to delete persisted content