Device Cleanup Manager

Clean stale AD devices with confidence Find inactive and disabled computers fast Execute scoped bulk actions safely

Device Cleanup Manager

Reduce directory clutter and regain control of stale AD computer objects with a cleanup workspace built for IT teams. Search by inactivity or disabled status, target the right OU, review every device, then disable, enable, delete, or export with full visibility.

Tool Screenshot
Fast discoveryFind stale and disabled devices in a few clicks
Precise scopeSearch the whole domain or focus on one OU
Controlled actionsDisable, enable, or delete only approved devices
Live visibilityTrack every operation with real-time status logs

Why teams choose it

Device Cleanup Manager turns a risky, repetitive cleanup task into a guided workflow. It helps IT teams identify unused computer objects, reduce directory noise, and act with clearer operational oversight.

  • Surface inactive devices based on LastLogonDate and your own inactivity threshold.
  • Isolate disabled computers instantly with server-side filtering.
  • Review detailed results before taking action on selected rows only.
  • Export evidence to CSV and keep a live audit-style activity trail.

What you get

Dual discovery modes

Find inactive devices or disabled computers without switching tools or workflows.

OU targeting

Narrow the search to the right OU or scan the full domain from one interface.

Action-ready results

Review device status, inactivity, source, and OU path in one clean grid.

Safe bulk execution

Disable, enable, or delete selected devices with confirmation gates and safeguards.

CSV-assisted cleanup

Import prepared device lists and resolve missing DNs automatically when needed.

Export and logging

Share CSV outputs and monitor every step through the built-in Message Center.

Built for safer cleanup

  • Actions apply only to the devices you explicitly select.
  • Confirmation prompts add a final review step before changes are committed.
  • Protected DN rules help prevent changes to sensitive objects and protected OUs.
  • Automatic refresh keeps the results grid aligned with the latest state.

Deletion is permanent unless AD Recycle Bin or a valid backup strategy is available.

CSV workflows that save time

Bring prepared cleanup lists into the tool with ComputerName or Name and move from spreadsheet review to controlled execution.

ComputerName PC-001 PC-002 LAB-010

Imported rows are labeled Source = CSV, so teams can separate imported work from search results at a glance.

If DistinguishedName is unavailable, the tool resolves it from AD when the action runs. Export fields include ComputerName, Enabled, LastLogonDate, InactiveDays, OUPath, DistinguishedName, and Source.

Ready for enterprise environments

  • Works on Windows 10 and Windows 11.
  • Best used on devices with domain connectivity.
  • Run as Administrator when your delegated role requires elevation.
  • Requires the RSAT ActiveDirectory module.
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0

Designed for practical AD reporting

Inactive device discovery uses Get-ADComputer with LastLogonDate, derived from replicated lastLogonTimestamp. That makes it suitable for cleanup reporting and stale object review, not real-time per-DC logon analysis.

Deploy in minutes

Option 1 - Run the PowerShell edition:

Set-ExecutionPolicy Bypass -Scope Process -Force .\DeviceCleanupManager.ps1

Option 2 - Launch the packaged executable:

DeviceCleanupManager.exe

Typical cleanup flow

1
Launch the workspace. Open Device Cleanup Manager and start from one focused console.
2
Choose a discovery mode. Search inactive devices or disabled computers.
3
Focus the scope. Scan the whole domain or target a specific OU.
4
Review the candidate list. Validate results and select the intended devices.
5
Apply the right action. Disable, enable, or delete only the approved items.
6
Export and document. Save CSV output and retain the Message Center log trail.

Project details

Data folder

C:\ProgramData\DeviceCleanupManager\ Logs\

License: MIT

Version: 2.0

Date: 2026-02-25

Author and disclaimer

Author: Mohammad Abdelkader

Website: momar.tech

Tool is provided as-is. Test in staging OU before production, and validate organizational permissions and policies.

Start cleaning AD with more control

Use one focused interface to discover stale devices, approve actions, and document results with confidence.

Download from GitHub
تعليقات