Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants