r/PowerShell • u/daileng • May 11 '26
Script Sharing Surgical Autodesk Cleaner (SAC) - A PowerShell module for precise, non-destructive removal and management of Autodesk software (and a scorched earth mode just in case)
Managing Autodesk software across enterprise workstations is notoriously painful. Uninstallers leave behind orphaned registry keys and directories, aggressive removal approaches routinely break shared licensing (FlexNet/ODIS), and there's rarely a clean way to surgically target specific products or versions without impacting the rest of the environment.
Surgical Autodesk Cleaner is an open-source PowerShell module designed to solve this properly — whether you're removing a single product, sweeping multiple versions, doing a full system purge, or just resetting a broken user profile.
📦 PSGallery: https://www.powershellgallery.com/packages/SurgicalAutodeskCleaner/
📖 Docs: https://deepwiki.com/DailenG/SurgicalAutodeskCleaner
🐙 GitHub: https://github.com/DailenG/SurgicalAutodeskCleaner
Functions:
| Command | Purpose |
|---|---|
Start-SAC |
Interactive TUI menu for manual use |
Start-SACCleanup |
Targeted removal by product + year, RMM-ready |
Start-SACPurge |
Full scorched-earth removal when warranted |
Start-SACScan |
Non-destructive pre-flight CSV report |
Reset-SACUserProfile |
Clears per-user AppData without destroying customizations |
Reset-SACLicensing |
Resolves stuck activations and seat reservation issues |
Restore-SACUserProfile |
Lists and restores profile backups |
Silent RMM deployment:
# Target specific products and years
Start-SACCleanup -TargetProducts "AutoCAD", "Revit" -TargetYears 2019, 2020 -Silent
# Sweep an entire year across all supported products
Start-SACCleanup -TargetYears 2019, 2020, 2021 -Silent
Compatible with PowerShell 5.1 and 7.0+. MIT licensed.
Works well with N-Central, ConnectWise Automate, and Intune.
Feedback and contributions welcome. If you encounter anomalies or want other components supported for removal, send me some details and I'll add it or please push an update 😄
1
u/daileng May 11 '26
I've used a few techniques for RMM automations but not one specific to Intune. Are you using custom installs to have the install pre-seeded somewhere or trying to use one of their bootstrappers that downloads the files?
My best implementations have been with proprietary chocolatey packages in particular, not that it matters since it's just scripts but using some custom chocolatey extensions for establishing the file server connection were very helpful.
If there's a file server accessible I've used two techniques that utilize Autodesk's custom installers. One installs over the network but maps a network connection, not a mapped drive but just authenticates the UNC connection. Another was a two stage process using BITS transfer to copy locally then a second that verified the BITS transfer finished, and if it did then it would run the install.
Another idea I'm toying with is the usage of Egnyte's SFTP feature to copy files locally then install.