Skip to main content

54 docs tagged with "Cleanup"

Documents on system cleanup processes and tools to free up resources

View all tags

AD Plugin Bug (Dirty Tables)

This document provides a temporary workaround for a bug in the CWA Active Directory plugin, which fails to remove deleted user and computer entries from its tables. It outlines the necessary steps to schedule scripts to maintain accurate data in the plugin until the issue is resolved by ConnectWise.

Agent Monitors - Remove Disk Monitors for Missing Drives

This document outlines a script designed to clean up older remote drive space monitors for non-existent drives on Windows systems. It provides guidance on when to run the script, including examples of error messages and monitors that indicate the need for cleanup. The process of the script and its output are also detailed.

Automate Database Maintenance

This document outlines the Automate Database Maintenance Solution, providing a comprehensive approach to maintaining and logging database tasks with the capability for future expansion. It includes associated scripts for various maintenance tasks and implementation guidelines.

Automate Database Maintenance - Commands

This document provides an overview of the Automate Database Maintenance Solution script, detailing its functionality for cleaning up specific database tables, the variables used within the script, and the expected output in the log file.

Automate Database Maintenance - Drives

This document details a script used for cleaning up database tables within the Automate system. It outlines the required global variable settings, expected outputs, and logging mechanisms involved in the database maintenance process.

Automate Database Maintenance - EventLog

This document outlines the Automate Database Maintenance Cleanup Script, which is responsible for cleaning up the Eventlogs table based on specific conditions. It details the script functionality, variables used, and expected output, providing a comprehensive overview for users.

Automate Database Maintenance - Monitors

This document provides details about the Automate Database Maintenance Solution script, which handles the cleanup of specific database tables, particularly focusing on the h_agenthistory table. It includes information on required variables, sample runs, and output logging for effective database management.

Automate Database Maintenance - Network Devices

This document details a script used for maintaining the Automate database, specifically for cleaning up network devices. It includes information on required variables, sample runs, and the expected output in the logging system.

Automate Database Maintenance - Patch Manager

This document details a script used for maintaining the Automate database by cleaning up specific tables related to patch management. It outlines the required global variable settings, describes the script’s functionality, and provides an overview of the variables used within the script.

Automate Database Maintenance - Roles

This document details a script designed for the Automate Database Maintenance Solution, focusing on the cleanup of specific database tables, particularly ComputerRoleDefinitions. It includes information on variable usage, expected outcomes, and logging procedures.

Automate Database Maintenance - Script History

This document provides an overview of the Automate Database Maintenance Script, detailing its functionality for cleaning up specific tables in the database, including script history and stale script states. It also explains the variables used in the script and the expected output in the log.

Automate Database Maintenance - Tickets

This document details the Automate Database Maintenance Solution script, which is responsible for cleaning up various tables in the database, including Tickets, TicketData, and others. It outlines the requirements for each table cleanup and provides information on the script functionality and logging mechanism.

Automate Database Maintenance - UserCentric

This document provides an overview of the Automate Database Maintenance Script, which is designed to handle the cleanup of specific database tables, particularly the Contacts table. It includes details on variable usage, log output, and sample runs to assist users in implementing the script effectively.

Automate Database Maintenance Solution

This document details the Automate Database Maintenance Solution, a script designed to execute recommended database tasks within ConnectWise Automate. It includes features for logging actions, maintaining database cleanliness, and specific cleanup functions for tickets, drives, commands, and more.

Clean Up AD Plugin

This document describes the process of cleaning up the Active Directory Plugin in ConnectWise Automate by removing unnecessary rows from specific tables and ensuring that the plugin is up to date. It outlines the requirements and dependencies for successful implementation.

Clear Browser Caches

This document provides a comprehensive overview of a script designed to clear the caches for various web browsers including Google Chrome, Microsoft Edge, Brave Browser, and Mozilla Firefox. It details how the script operates, user parameters, and links to related sub-scripts, ensuring efficient cache management without affecting browser history.

cPVAL Approved Local Admins

A comma-separated list of approved local admins for the client. Setting this custom field at the location or computer level will override the value set at the organization level.

cPVAL Local Admin Group Cleanup

Select the operating system to activate the local admin group cleanup solution for the client. To exclude a specific location or computer, set this field to `Disable` at that level.

Disk - Space - Cleanup (Mac)

This document provides a comprehensive overview of a script designed to perform disk cleanup on MAC devices, including its dependencies, process, and sample output.

Disk Cleanup

This is a task to run Soji from the self help menu in the Ninja tray icon and display the results as a toast notification to the end user

Disk Space Monitoring Process

This document outlines a script that checks disk space against defined thresholds in a ConnectWise Automate instance, performs disk cleanup on Windows machines, and creates a ticket if necessary. It includes user parameters, system properties, and a detailed process for execution.

DRVClean - All Drives

This document provides a comprehensive guide on automating the cleanup of well-known directories containing aging files and folders on all internal drives. The process saves time and ensures efficient management of disk space on Windows machines.

Egnyte - Install

This document outlines the agent procedure for updating and installing the Egnyte software, including the steps taken to kill all Office applications prior to installation and prompting for a reboot afterward. The example agent procedure log provides detailed insights into the actions and results of the installation process.

Enhanced Disk Space Monitoring Process

This document details the EPM Disk Internal Monitor Autofix Script, which monitors drive space, performs disk cleanup, and manages ticket creation for low drive space conditions. It includes information on its functionality, dependencies, and usage parameters.

Huntress - Managed EDR - Uninstall

This document outlines the agent procedure for uninstalling the Huntress EDR agent, updater, and related components. It provides a detailed implementation guide, including dependencies, process steps, and output log locations for successful uninstallation.

Local Admin Group Cleanup

Cleans up and manages the local Administrators group based on approved users from the custom field "cPVAL Approved Local Admins".

Local Admin Group Cleanup

This document outlines the steps for implementing the Local Admin Group Cleanup solution to manage members in the local admin group on Windows machines from Ninja One.

Local Admin Group Cleanup - Add/Remove

This document details a script designed to manage local admin group members by removing unauthorized users and adding approved members. It includes execution guidelines, dependencies, and configuration details for effective use in a Windows environment.

Log4J Remediation Residue Removal

This document outlines a script that effectively removes residuals left by the Log4J (Log4Shell) File Scan script, including the cleanup of the Everything service. It provides a summary, sample run, and dependencies for successful execution.

LTCache - Delete All Files

This document provides details about a script designed to clean up the LT caching folder, saving approximately 10 minutes of manual effort. It includes a sample run, variable descriptions, and a step-by-step process of how the script operates, along with its output.

Network Devices - Remove Older Than 60 Days

This document describes a script that removes network devices that have not been online for 60 days. It is designed to be used as an Autofix solution, saving valuable time by automating the cleanup process. The script executes SQL queries to identify and delete inactive devices, ensuring a streamlined network management experience.

Proval Maintenance

This document provides a detailed overview of a script designed to clean up old data in ConnectWise Automate, including ticket history, network devices, and more. It outlines the global parameters, process flow, and expected time savings from automation.

Purge IIS Logs Older than 3 Days

This document provides a detailed overview of a PowerShell script designed to remove IIS log files older than 3 days from a specified directory. The script logs actions taken, including successes and failures, and outlines the command execution process along with example agent procedure logs.

Purge IIS Logs Older than X Days Param

This document describes a script that removes IIS log files older than a specified number of days, contingent on the size of the log directory. It provides setup instructions, variable definitions, and a recommended schedule for running the script.

Recycle Bin Empty All Users

This document provides a procedure to empty all recycle bins on the system drive, ensuring that unnecessary files are removed and disk space is optimized. It includes an example agent procedure log to illustrate the successful execution of the task.

Registry contents Removal

This document outlines a script developed to delete all contents of the PendingFileRenameOperations registry. It provides a detailed summary of the script’s functionality, sample run logs, dependencies, process flow, and output information, ensuring users understand how to effectively clear registry entries related to pending file rename operations.

Remove Duplicates from ScriptState Table

This document provides a detailed guide on how to clear duplicate entries from the scriptstate table in a client script. It includes sample runs, variable descriptions, and a step-by-step process to effectively manage and schedule the cleanup of duplicate entries on a daily basis.

Remove Missing Drives

This document outlines a script that automates the removal of drives from machines that are still listed but no longer detected. It provides a summary of the process, a sample run, and the time saved by using this automation.

Remove Probe LTCache Share

This document outlines a script designed to remove the current LTCache on the Probe for a specified target location, providing a streamlined process that saves time and enhances efficiency in managing cache data.

Run Disk Cleanup - Windows

Runs the Cleanmgr included in Windows. It will set all optional Cleanmgr targets to enabled except for the Downloads folder.

Run Disk Cleanup - Windows

Runs the Cleanmgr included in Windows. It will set all optional Cleanmgr targets to enabled except for the Downloads folder.

Script - Uninstall N-Able

This document provides a comprehensive guide on uninstalling the N-Able (Windows Agent) application, including the script to perform the uninstallation and clean up all traces of the application from the system.

Soji (Disk Cleanup Utility)

This document provides a comprehensive guide on creating the Soji disk cleanup Task in ConnectWise RMM. Soji is a smart disk cleanup utility designed to enhance system cleanliness on Windows, utilizing native System.IO file and directory management along with COM references to the deprecated cleanmgr tool.

Soji (Disk Cleanup Utility)

This document provides a comprehensive guide on creating the Soji disk cleanup Task in ConnectWise RMM. Soji is a smart disk cleanup utility designed to enhance system cleanliness on Windows, utilizing native System.IO file and directory management along with COM references to the deprecated cleanmgr tool.

Soji Disk Cleaner

This document outlines the Stack-Standard Disk Cleanup utility that utilizes agnostic content Soji to perform a cleanup of all drives on the target endpoint. It includes a sample run log, process description, and expected output from the cleanup operation.

Soji Disk Cleaner [WIN] [PVAL]

This document outlines the implementation process for running the Soji Disk Cleaner on selected endpoints within Datto RMM. It includes dependencies, implementation steps, and output details to ensure successful execution.

Sophos Removal

This document provides a comprehensive guide on removing the Sophos Endpoint Agent from an endpoint, including example logs, dependencies, and the process involved in the uninstallation. It details the use of SophosZap and necessary configurations for successful removal.

System Restore Point - Auto Purge after x thresholds

This PowerShell script automates the creation of a system restore point by first enabling System Restore on all valid internal NTFS drives and ensuring the required services are running. It then creates a restore point labeled Automated Restore Point.The script intelligently filters out invalid or external drives and optionally performs cleanup of older shadow copies based on a configurable threshold, helping to manage disk space efficiently.It supports environment-based input for drive letters and threshold values, making it highly adaptable for deployment via RMM platforms. This solution is ideal for pre-update safety, rollback readiness, and compliance-driven environments.

User Management - Purge Local Account and Profile

This document outlines a script designed to completely remove and purge local accounts, including UserSID, from the agent. It can operate manually or automatically, depending on the configuration. The script saves approximately 5 minutes of time by automating the removal process for inactive accounts.