Question:
First steps in Powershell. I can not remove / uninstall AWSPowerShell
module from AWS installed modules.
Get-Module -Name AWSPowerShell,AWSPowerShell.NetCore,AWS.Tools.Common -ListAvailable
showing as follows:
1 2 3 4 5 6 7 8 9 10 11 12 |
Directory: C:\Users\user\Documents\PowerShell\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Binary 4.1.14.0 AWS.Tools.Common Core,Desk {Clear-AWSHistory, Set-AWSHistoryConfiguration, Initialize-AWSDefaultConfi… Directory: C:\Program Files (x86)\AWS Tools\PowerShell ModuleType Version PreRelease Name PSEdition ExportedCommands ---------- ------- ---------- ---- --------- ---------------- Binary 3.3.509.0 AWSPowerShell Desk |
Whem I’m trying to uninstall it via Uninstall-Module -Name AWSPowerShell
I’m getting error:
1 2 3 4 5 6 |
Uninstall-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:12733 Line | 12733 | … $null = PackageManagement\Uninstall-Package @PSBoundParameters | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | No match was found for the specified search criteria and module names 'AWSPowerShell'. |
Question – how can i get rid of this one?
Answer:
You need to simply delete it. If you want to do it via PowerShell, you can do something like this:
1 2 |
Get-Module -Name |