How zabero/profilejanitor works
ProfileJanitor is an administrator-facing Windows utility for inspecting and safely removing unused, orphaned, or leftover user profiles, locally or remotely. The main workflow is to load and classify profiles, choose candidates, optionally create a ZIP backup, then delete and report the result. It supports both a WPF interface and command-line operation, plus exclusions and event-log auditing. The excerpts show application startup, deletion safeguards, and core access helpers; some inventory and CLI dispatch details are documented but not shown in full.
Main entry points: Core.cs Safe deletion · MainWindow.xaml.cs Profile window · App.xaml.cs Application startup · Help.cs Built-in help
Components 15
Application entry
- Application startup
App.xaml.cs - Command-line mode
Core.cs
Operator experience
- Profile window
MainWindow.xaml.cs - Built-in help
Help.cs - Candidate selection
MainWindow.xaml.cs
Profile operations
- Profile inventory
Core.cs - Profile classification
Core.cs - Safe deletion
Core.cs - ZIP backup
Core.cs
State and access
- Permanent exclusions
Core.cs - Target access
Core.cs - Windows profile state
- Windows event log
Other components
- Administrator
- Remote computer
Connections 17
- Administrator → Application startup: starts
README.md - Application startup → Profile window: opens
App.xaml.cs - Application startup → Command-line mode: dispatches
App.xaml.cs - Profile window → Built-in help: opens
MainWindow.xaml.cs - Profile window → Profile inventory: requests listing
README.md - Profile inventory → Profile classification: classifies profiles
README.md - Profile window → Candidate selection: selects candidates
README.md - Candidate selection → Safe deletion: requests removal
README.md - Command-line mode → Profile inventory: lists profiles
Core.cs - Command-line mode → Safe deletion: requests removal
Core.cs - Safe deletion → ZIP backup: backs up first
Core.cs - Safe deletion → Permanent exclusions: checks exclusions
Core.cs - Safe deletion → Target access: uses target
Core.cs - Profile inventory → Target access: reads profile data
Core.cs - Target access → Windows profile state: accesses registry and WMI
Core.cs - Target access → Remote computer: connects remotely
README.md - Safe deletion → Windows event log: records result
Core.cs