r/PowerShell • • 4d ago

Script Sharing PowerShell Module Manager

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
31 Upvotes

17 comments sorted by

View all comments

5

u/karanikn 4d ago

Nice work, and thanks for the shout-out! Great to see that my WPF version inspired you to build your own. The cross-platform TUI and PSRemoting support are nice additions!

For anyone interested in the WPF version mentioned in the post, here’s PowerShell Module Manager v7.0:
https://github.com/karanikn/PSModuleManager

One feature you might consider adding is moving modules between the CurrentUser and AllUsers scopes in both directions. We have that in PSModuleManager, and it’s useful when you want to make a user-installed module available system-wide, or move it back to the user scope.

It’s also integrated into karanik_WinMaintenance_Online:
https://github.com/karanikn/karanik_WinMaintenance_Online

Looking forward to seeing how your project develops!

2

u/positivemark 4d ago

That's a great idea, I will steal :)

1

u/karanikn 4d ago

Add also status of update process :)
% installed / updated. I tried and I thought stack

1

u/positivemark 3d ago

The titlebar in modman now shows this:

ModuleManager 234 modules | 54 updates | 76% latest | view: All | sort: Name

1

u/BlackV 4d ago

dont forget to properly handle elevation when doing that

1

u/positivemark 3d ago

Good note thanks, if you update to 0.4.0 it will now handle elevation on Windows, you just have to accept a UAC prompt. If you are already running your terminal as admin moves just work without UAC obviously. On MacOS/Linux it currently just prompts that you need to be running it via sudo to do a module move.

1

u/BlackV 3d ago

Nice

2

u/Belcia_Baeseler 4d ago

having that scope migration built right in saves so much manual folder cleanup tbh.