Provide a routine maintenance strategy for managed machines to include system optimization, and preventative maintenance operations such as disk and temp files cleanup, hard drive analysis, repair and optimization and more. Routine maintenance is vital to help ensure systems run more smoothly and operate at their peak performance potential. Institute a basic automated routine maintenance schedule across supported systems initially focused on workstations but extensible and capable of supporting more advanced maintenance operations over time as well as servers as needed.
Overview
Kaseya automation called Agent Procedures can be used to perform most any automated task on one or many systems on a scheduled basis. Automatic tasks like check disks, disk fragmentation analysis and optimization, volume repairs, house cleaning, clearing caches, temporary files cleanup, log rotation, and more are combined into a powerful routine maintenance solution that is applied to Windows and Macintosh workstations to keep these systems running more smoothly.
Policies
A set of Policies apply recurring Routine Maintenance schedules across Windows and Macintosh workstations. These policies in turn cause Agent Procedures that perform the actual maintenance on each system at regularly scheduled times. The policies included are located under [System].Core.Org Specific Policies.Routine Maintenance,and are described below.
Windows Workstation Recurring Maintenance
Windows Workstation Maintenance (Weekly M-F 6pm-6am) - Applies a scheduled Windows Workstation maintenance procedure to run on all Windows Workstation machines weekly (M-F) between 6pm-6am. If the machine is not turned on when the maintenance is scheduled, then the machine will skip that maintenance cycle and will attempt to run the maintenance again a week later.
Macintosh Workstation Recurring Maintenance
Macintosh Workstation Maintenance Schedule (Weekly M-F 6pm-6am) - Applies a scheduled Macintosh maintenance procedure to run on all Macintosh Workstation machines weekly (M-F) between 6pm-6am. If the machine is not turned on when the maintenance is scheduled, then the machine will skip that maintenance cycle and will attempt to run the maintenance again a week later.
Agent Procedures
A set of Agent Procedures perform various aspects of the maintenance tasks on Windows and Macintosh workstations. These procedures are scheduled via Policy to run on a recurring schedule. The agent procedures included are located under [System].Core,and are described below.
1 Windows Procedures.Desktops.Maintenance.Desktop Maintenance.Workstation Weekly Maintenance
Description: Executes all the Weekly Desktop Maintenance tasks, schedule this script to run during your maintenance window.
Usage: Scheduled by Policy Management to run on all Windows Workstations Weekly (M-F) between 6pm-6am via the "Windows Workstation Maintenance (Weekly M-F 6pm-6am)" Policy when when the Workstation Maintenance feature is enabled via Automated Systems Management.
Common Maintenance Tasks.System Restore.Create Weekly Desktop Maintenance System Restore Point
Description: Uses WMIC to create a System Restore Point called Weekly Desktop Maintenance. This agent procedure can be called at the beginning of the Workstation Weekly Maintenance Procedure.
Usage: Called by the Workstation Weekly Maintenance Procedure.
Common Maintenance Tasks.Flush DNS. Flush DNS Resolver Cache
Description: Flushes and resets the contents of the DNS client resolver cache by performing IPCONFIG /FLUSHDNS
Usage: Called by the Workstation Weekly Maintenance Procedure.
Common Maintenance Tasks.IE Files Management. Clear Internet Explorer Temp Files
Description: Clears the Internet Explorer Temporary Files for the currently logged on user.
Usage: Called by the Workstation Weekly Maintenance Procedure.
Common Maintenance Tasks.TEMP Files.Clear User TEMP Folder
Description: Deletes all files and folders within and below the logged on users %TEMP% folder that are not currently locked/open by Windows.
Usage: Called by the Workstation Weekly Maintenance Procedure.
Common Maintenance Tasks.Disk Cleanup.Windows Disk Cleanup
Description: Sets the "sageset" registry entries for cleanmgr.exe and then executes cleanmgr.exe with the "sagerun" parameter to automatically clean files in the following locations: Active Setup Temp Folder Content Indexer Cleaner Downloaded Program Files Internet Cache Files Memory Dump Files Old ChkDsk Files Recycle Bin Remote Desktop Cache Files Setup Log Files Temporary Files Temporary Offline Files WebClient and WebPublisher Cache.
Usage: Called by the Workstation Weekly Maintenance Procedure.
Common Maintenance Tasks.Check Disk.Check Disk System Drive (Schedule at Next Restart)
Description: Executes a CHKDSK command on the system drive. The results of the maintenance are evaluated by the Check Disk Verify script.
Usage: Called by the Workstation Weekly Maintenance Procedure.
Common Maintenance Tasks.Defragmentation.Defragment System Drive (Analysis & Prompt User If Reqd)
Description: Performs a defragmentation analysis on the system drive in Windows (usually C:). Defragmentation results are written to the agent procedure log. If a user is logged onto the machine, then the procedure asks them if they want to run a full defragmentation on the drive and performs one if they answer yes.
Usage: Called by the Workstation Weekly Maintenance Procedure.
2 Macintosh Procedures.Maintenance.Macintosh Weekly Maintenance
Description: Performs a number of routing maintenance tasks on a Macintosh OS X machine.
Usage: Scheduled by Policy Management to run on all Macintosh Workstations Weekly (M-F) between 6pm-6am via the "Macintosh Workstation Maintenance Schedule (Weekly M-F 6pm-6am)" Policy when when the Workstation Maintenance feature is enabled via Automated Systems Management.
General OS X House Cleaning
Description: Performs system cleaning, removes old log files, "scratch" and "junk" files, clears user and system caches, rotates system and application logs, rebuilds DYLD cache, and rebuilds the Spotlight index.
Usage: Called by the Macintosh Weekly Maintenance Procedure.
Verify and Repair OS X Disk Volumes
Description: Performs disk verification and repair operations using DISKUTIL.
Usage: Called by the Macintosh Weekly Maintenance Procedure.
Repair OS X Disk Permissions
Description: Performs a disk repair permissions operation using DISKUTIL.
Usage: Called by the Macintosh Weekly Maintenance Procedure.