Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

uninstall Microsoft.PowerShell.SecretStore not working #657

Open
mi-hol opened this issue Jul 8, 2021 · 3 comments
Open

uninstall Microsoft.PowerShell.SecretStore not working #657

mi-hol opened this issue Jul 8, 2021 · 3 comments

Comments

@mi-hol
Copy link

mi-hol commented Jul 8, 2021

Tried to remove all versions of Microsoft.PowerShell.SecretStore, but wasn't successful.

Any hints appreciated.

PS C:\> Get-Module Microsoft.PowerShell.SecretStore -li

    Directory: C:\Users\StdUser\OneDrive - Corp\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     0.9.0                 Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…
Binary     0.5.4      preview4   Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     0.9.0                 Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…

PS C:\> Uninstall-Module Microsoft.PowerShell.SecretStore -Force -allVersions
PS C:\> Get-Module Microsoft.PowerShell.SecretStore -li

    Directory: C:\Users\StdUser\OneDrive - Corp\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     0.9.0                 Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…
Binary     0.5.4      preview4   Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     0.9.0                 Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…

PS C:\>
@PaulHigin
Copy link
Contributor

This is a PowerShellGet Uninstall-Module issue, so I will transfer this issue to there. The PowerShell team is working on a v3 version of PowerShellGet and can be addressed in that release.

@PaulHigin PaulHigin transferred this issue from PowerShell/SecretStore Jul 12, 2021
@mi-hol
Copy link
Author

mi-hol commented Jul 14, 2021

could be related to PowerShell/PowerShellGet#262 and PowerShell/PowerShellGet#365

@anamnavi anamnavi transferred this issue from PowerShell/PSResourceGet Jul 22, 2021
@anamnavi
Copy link
Member

Hi @mi-hol thanks for reaching out! Are you running this on WindowsPowerShell or PowerShell 6+? (You can run $PSVersionTable in the powershell terminal to find out)

If you are running this on WindowsPowerShell you need to run WindowsPowerShell as Admin and then run:
Uninstall-Module Microsoft.PowerShell.SecretStore -Force -allVersions again

In PowerShell 6+ you can run
Uninstall-Module Microsoft.PowerShell.SecretStore -Force -allVersions and it should be good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants