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:
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:
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?
You need to simply delete it. If you want to do it via PowerShell, you can do something like this:
Get-Module -Name <ModuleName> -ListAvailable | Select-Object -ExpandProperty ModuleBase | Remove-Item -Recurse -Force
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