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 -SilentCompatible 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 😄
9
u/Enochrewt May 11 '26
Oh holy smokes, I am juggling a migration to bluebeam from something autocad, and a migration of something to Navisworks and the userbase crosses each other. I'm pretty handy with the whole app packaging thing, but the installer is a hellspawn nightmare.
I hadn't thought about it much, and have told myself all weekend it's a "Monday Problem". I think you have the Sunday solution. Thanks!
3
u/importedtea May 11 '26
This is really helpful, thank you! Autodesk products are a nightmare to manage in our org. On a side note if you don’t mind me asking, have you had success deploying these apps through Intune? I’ve struggled to get things like Revit or Inventor to package and install reliably on endpoints. Only one I ever got to work was Autocad. Followed endless amounts of guides and no success.
6
u/PinchesTheCrab May 11 '26
I don't manage autodesk, so I can only provide feedback on your module structure and syntax.
common functions are redefined over and over. Pull those out of your top level functions, create a
Privatedirectory next toPublic, and put them there.'public','private' | gci *.ps1 | set-content mymodule.psm1. You can make it fancier by tossing in your command to run your tests to prevent builds if they fail, or to publish to the gallery, increment your versions, whatever makes sense for your workflow'I like dogs'and"I like $animal"return 'here's the output', you can just do'here's the output'. Return is for controlling code flow or with classes1
u/daileng May 14 '26
Since there was so much interest in this I made some pretty significant updates over the past few days, particularly for those having to work on systems en masse. I've tested the remote execution and purging quite a bit but need to do more testing with the licensing and profile tools.
Surgical Autodesk Cleaner v2.4.0
This major update introduces Enterprise-grade Remote Dispatch capabilities, a resilient Supervisor monitoring engine, and a fully overhauled TUI for a more professional and robust experience.
Key Highlights
🚀 Enterprise Remote Dispatch
🛡️ Resilient Supervisor Engine
Wait-Processto a non-blocking Supervisor loop.🧹 Enterprise Purge & Cleanup
MAX_PATHlimits.Privatefolder.🖥️ Enhanced Interactive TUI
[L]) to examine transcript and attention items from the last run.[T]) directly from the menu.Changes since v1.3.2
Features
Invoke-SACRemotefor multi-node deployments.Fixes & Improvements
QuietUninstallString.1
u/YisitAlwaysDNS May 30 '26
Wow this looks great, thanks for posting. I saw you offered help with package delpoyment was curious what you use for Revit installs and the various updates.
Intune will handle the large installed wrapped up but my god is it slow. I tried a scripted approach to download the installer directly from autodesk, store in temp, install amd them delete the orignal installer files to save local drive storage but I never could get it to work.
Would really appreciate any guidance with particularly Revit and Desktop Connector.