delprof2_delete_all_profiles.ps1 - limehawk/rmm-scripts GitHub Wiki
delprof2_delete_all_profiles.ps1
Deletes ALL Windows user profiles except protected ones.
Overview
This script deletes ALL Windows user profiles except protected ones (gaia, administrator). Uses DelProf2 utility downloaded directly from helgeklein.com.
Purpose
Deletes ALL Windows user profiles except protected ones (gaia, administrator). Uses DelProf2 utility downloaded directly from helgeklein.com.
Prerequisites
- Windows 10/11
- Admin privileges required
- Internet access for DelProf2 download
Configuration
Data Sources & Priority
- Direct download from helgeklein.com
Required Inputs
None - no runtime variables needed.
Settings
- Always protects: gaia, administrator profiles
- Downloads DelProf2 directly (no Chocolatey required)
- Cleans up after execution
Behavior
- Downloads/extracts DelProf2 if not cached
- Executes: delprof2.exe /u /ed:gaia /ed:administrator
- Cleans up cached files
- Reports results
Security Notes
- DESTRUCTIVE OPERATION - profiles cannot be recovered
- Downloads from official helgeklein.com source
Exit Codes
- 0: Success
- 1: Failure
Example Output
[ INPUT VALIDATION ]
--------------------------------------------------------------
Mode : Delete All Profiles
Protected : gaia, administrator
[ OPERATION ]
--------------------------------------------------------------
Using cached DelProf2
Executing: DelProf2.exe /u /ed:gaia /ed:administrator
[DelProf2 output]
Cleaning up...
[ RESULT ]
--------------------------------------------------------------
Status : Success
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
Version History
- 2025-11-29 v1.0.0 Initial release - separated from combined script
Links
- View Script Source
- Scripts - Back to script index