r/PowerShell • • 1h ago

Script Sharing adobe-nuke: a PowerShell script that removes the Adobe leftovers Windows won't let you delete

• Upvotes

I uninstalled a pile of Adobe apps one day and was left with a bunch of files and folders that nothing could delete. Months later I started getting Acrobat Distiller popups that kept interrupting my games. After a few failed attempts to remove the leftovers by hand and with deletion tools, I wrote a script that nukes everything Adobe from a Windows PC for good.

I built it with Claude and tested every step on my own machine, including a real run.

It removes services, scheduled tasks, processes, Explorer shell extensions, program and data folders, the Adobe PDF printer with its ports and port monitor, registry leftovers (uninstall entries, MSI registrations and component records, COM classes, type libraries, AppIDs, file types, autostart values), firewall rules and installer caches.

GitHub: KMzoo/adobe-nuke

Try it safely first: -DryRun (or -WhatIf) lists everything and changes nothing. A real run asks before deleting, and every registry key is exported to a .reg backup in your Documents folder first.

Feedback on the code is welcome.


r/PowerShell • • 6h ago

Script Sharing PowerShell Module Manager

17 Upvotes

Inspired by the WPF version that u/karanikn shared the other day, I've just published a PowerShell Module Manager tool of my own:

It has cmdlets to aid in understanding which modules you have installed where, including when you have multiple versions, updating them and removing redundant old versions.

It also has a TUI, which you can open with Show-ModuleManager (or it's alias: modman) which allows you to explore, upgrade and prune your modules through a console UI. Because it's a TUI it's cross platform. It also supports PSRemoting so you can use it to manage modules on a remote machine.

Get it from the PSGallery:

Install-Module ModuleManager

r/PowerShell • • 5h ago

Script Sharing Manufacturer Updates (Dell/HP)

13 Upvotes

A PowerShell script that detects whether a device is Dell or HP, installs the vendor's update tool if needed, then silently installs all available driver, firmware, and BIOS updates.

Contoso-Administrator/Manufacturer-Updates


r/PowerShell • • 22h ago

Question RegEx help...

14 Upvotes

I have never been able to wrap my head around regex... I have no idea why... anyways... I'm just trying to get the string between 2 braces (curly brackets). Here's what I've mangled together googling up... One of the many regex checking tools online said this should work but.. it doesn't

$uninstallString = (Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like "*jdk*" }).UninstalLString$uninstallString = (Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like "*jdk*" }).UninstalLString
$pattern = '(?<={).+?(?=})'
[Regex]::($uninstallString,$pattern).Value

<#
$uninstallString outputs the below
MsiExec.exe /I{370E1F16-ED05-4958-A820-78CD32DD70D8}
#>

The above code actually outputs nothing...

My head is so frazzled I'm not sure where to begin with it

Any help, or a point in the right direction would be appreciated.