I installed a Powershell module (posh-git) using PS-Get but I am finding that it is quite slow. I want to uninstall it but using Remove-Module posh-git
only uninstalls it from my current session but I would like to make this permanent.
To uninstall the Az PowerShell module, you can use the Uninstall-Module cmdlet. However, Uninstall-Module only uninstalls the modules specified for the Name parameter. To remove the Az PowerShell module completely, you must uninstall each module individually.
You can uninstall software using PowerShell in 2 ways, the Uninstall() method and the Uninstall-Package command. Out of the two, the Uninstall() method is the most popular and the easiest option to remove well-known programs from a device.
The Remove-Module cmdlet removes the members of a module, such as cmdlets and functions, from the current session. If the module includes an assembly ( . dll ), all members that are implemented by the assembly are removed, but the assembly is not unloaded.
This is an open issue for PS-GET: https://github.com/psget/psget/issues/164:
This should be a feature. Nowadays, you have to delete it manually from
C:\Users\[yourUser]\Documents\WindowsPowerShell\modules
directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With