dustinestes / MECM_Toolkit

A collection of scripts, tools, and processes for the successful installation, administration, and automation of the Microsoft Endpoint Configuration Manager product.
MIT License
0 stars 0 forks source link

Maintenance Task: Cleanup Log Repo Directories #10

Closed dustinestes closed 4 hours ago

dustinestes commented 4 hours ago

Description Create a script that can be run as a Scheduled Task that will cleanup log directories based on a defined retention period, in days.

Purpose This will help to ensure that the log repo will not balloon in size and continue grow by trimming the trailing directories out once they reach a suitable age.

dustinestes commented 4 hours ago

Created script, tested in a real world environment, and validated the successful execution and logging of the operation.