- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to uninstall the PowerShell Module?
To uninstall the PowerShell module, we can directly use the Uninstall-Module command but the module should not be in use, otherwise, it will throw an error.
When we use the Uninstall-Module command, it can uninstall the module from the current user profile or from the all users profile.
Uninstall-Module 7Zip4PowerShell -Force -Verbose
Another method,
Get-InstalledModule 7Zip4Powershell | Uninstall-Module -Force -Verbose
If you have multiple versions of the same module installed in the PowerShell, and if you want to uninstall all of them then use the -AllVersions Parameter.
Uninstall-Module 7Zip4PowerShell -AllVersions -Force -Verbose
If you want to uninstall the specific version, we can use -RequiredVersion.
Uninstall-Module 7Zip4PowerShell -RequiredVersion 1.5.0 -Force -Verbose
To uninstall on the remote computer, use the Invoke-Command method.
Invoke-Command -ComputerName RemoteComputer1 -ScriptBlock { Uninstall-Module 7Zip4PowerShell -RequiredVersion 1.5.0 -Force -Verbose }
- Related Articles
- How to uninstall the MSI package using PowerShell?
- How to uninstall software using WMI in PowerShell?
- How to uninstall software using Package management in PowerShell?
- How to install PowerShell Module?
- How to install the latest PowerShell module version?
- How to install the PowerShell Active Directory module?
- How to install the specific version of the PowerShell module version?
- How to uninstall a VPN
- Uninstall APKs programmatically
- How to code the tkinter "scrolledtext" module?
- How to use the Subprocess Module in Python?
- How to understand JavaScript module pattern?
- How to retrieve Python module path?
- How to write a python module?
- How to install a Python Module?

Advertisements