# Preview stale computer cleanup

Preview stale computer cleanup on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

CleanupMonster

This module provides an easy way to cleanup Active Directory from dead/old objects based on various criteria. It can also disable, move or delete objects. It can utilize Azure AD, Intune and Jamf to get additional information about objects before deleting them.

[View on GitHub](https://github.com/EvotecIT/CleanupMonster) [Visit Website](#) [Releases](https://github.com/EvotecIT/CleanupMonster/releases/tag/v3.1.7) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/CleanupMonster)

Stars**153**

Forks**19**

Open issues**0**

PowerShell Gallery downloads**25686**

Release**v3.1.26**

Language: PowerShell Updated: 2026-11-12

Curated Examples

Use CleanupMonster to review stale computer cleanup without changing Active Directory.

This pattern is useful for the first pass of a computer cleanup engagement.

It is adapted from `Examples/DeleteComputers.ps1`.

## Example

```powershell
Import-Module CleanupMonster

$reportPath = Join-Path $PSScriptRoot 'Reports\CleanupComputersPreview.html'
$logPath = Join-Path $PSScriptRoot 'Logs\CleanupComputersPreview.log'

Invoke-ADComputersCleanup `
    -Disable `
    -Delete `
    -ReportOnly `
    -WhatIf `
    -ShowHTML `
    -ReportPath $reportPath `
    -LogPath $logPath
```

## What this demonstrates

- generating a reviewable cleanup report
- keeping AD changes disabled with `-ReportOnly` and `-WhatIf`
- writing output to script-local folders

## Source

- [DeleteComputers.ps1](https://github.com/EvotecIT/CleanupMonster/blob/master/Examples/DeleteComputers.ps1)

<!-- PowerForge markdown artifact sha256:477C1AA1E99F23E5DE4D247D8EBC9D18FA233B98A63267DED50753F3565FEA21 -->
