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

uninstall Microsoft.PowerShell.SecretStore not working #657

Description

@mi-hol

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:\>

Activity

  1. PaulHigin commented on Jul 12, 2021

    @PaulHigin
    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.

  2. mi-hol commented on Jul 14, 2021

    @mi-hol
    Author

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

  3. anamnavi commented on Jul 22, 2021

    @anamnavi
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions