You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 22, 2026. It is now read-only.
Upgrading PowerShell Core version affected secrets store #61
No, upgrading PowerShell version should have no effect on the SecretStore. I have upgraded multiple times without any effect. But make sure your SecretStore extension vault is still registered.
Get-SecretVault
Name ModuleName IsDefaultVault
----------------------------
SecretStore Microsoft.PowerShell.SecretStore True
SecretManagement and SecretStore configurations are based on the current logged in user, so make sure you are logging in with the same account.
Also, be sure to uninstall any previous versions of SecretManagement or SecretStore module you may have, as the 1.0.0 release is not compatible with previous preview versions. You should have only one version installed.
Get-Module Microsoft.PowerShell.SecretStore -list
Directory:
ModuleType Version PreRelease Name PSEdition ExportedCommands
--------------------------------------------------------
Binary 1.0.0 Microsoft.PowerShell.SecretStore Core {Unlock-SecretStore,Set-SecretStorePas…
Installing the latest version (1.0.2) of SecretStore over version 0.9.0 should not affect current secrets, as the two versions are compatible. But both SecretManagement and SecretStore stores data in the current user account scope. UserA will not see registered vaults or stored secrets created by UserB. So I am wondering if you are running SecretManagement/SecretStore in a different user account, and that is why 'Get-SecretVault' is returning nothing.
We are looking at adding a 'machine wide' Scope option to SecretManagement/SecretStore in a future release, so that secrets can be shared among different user accounts.
I am wondering if you are running SecretManagement/SecretStore in a different user account,
yes, these are 2 different users, required due to locked down corporate W10 1909 Enterprise environment (a standard user and different user with admin rights)
I have a similar issue, but maybe not, perhaps a different issue?
I can use the modules in pwsh 7.2 but when using update-module or Get-InstalledModule it does not show up (says was not installed using Install-Module)
The module does show up in powershell 5.1 with Get-InstalledModule
I want to update the module, and I'm fairly certain I didn't do any other type of installation for pwsh. What is best course of action to update in pwsh 7.2 (desiring to using the Install-Module method)
davesbrown WindowsPowerShell (5.1) modules are usually installed in a different location than for PowerShell 7.x, because they may not be compatible. There are many older WindowsPowerShell modules that do not run correctly in PowerShell 7.x because of the difference in the dotNet runtimes between them. You will need to run 'Install-Module' again under PowerShell 7.x.
Activity
PaulHigin commentedon Apr 29, 2021
No, upgrading PowerShell version should have no effect on the SecretStore. I have upgraded multiple times without any effect. But make sure your SecretStore extension vault is still registered.
SecretManagement and SecretStore configurations are based on the current logged in user, so make sure you are logging in with the same account.
Also, be sure to uninstall any previous versions of SecretManagement or SecretStore module you may have, as the 1.0.0 release is not compatible with previous preview versions. You should have only one version installed.
mi-hol commentedon Jul 7, 2021
I've encountered a weird situation.
Any suggestions?
PaulHigin commentedon Jul 7, 2021
Installing the latest version (1.0.2) of SecretStore over version 0.9.0 should not affect current secrets, as the two versions are compatible. But both SecretManagement and SecretStore stores data in the current user account scope. UserA will not see registered vaults or stored secrets created by UserB. So I am wondering if you are running SecretManagement/SecretStore in a different user account, and that is why 'Get-SecretVault' is returning nothing.
We are looking at adding a 'machine wide' Scope option to SecretManagement/SecretStore in a future release, so that secrets can be shared among different user accounts.
mi-hol commentedon Jul 8, 2021
yes, these are 2 different users, required due to locked down corporate W10 1909 Enterprise environment (a standard user and different user with admin rights)
davesbrown commentedon Apr 14, 2022
I have a similar issue, but maybe not, perhaps a different issue?
I can use the modules in pwsh 7.2 but when using update-module or Get-InstalledModule it does not show up (says was not installed using Install-Module)
The module does show up in powershell 5.1 with Get-InstalledModule
I want to update the module, and I'm fairly certain I didn't do any other type of installation for pwsh. What is best course of action to update in pwsh 7.2 (desiring to using the Install-Module method)
PaulHigin commentedon Apr 14, 2022
davesbrown WindowsPowerShell (5.1) modules are usually installed in a different location than for PowerShell 7.x, because they may not be compatible. There are many older WindowsPowerShell modules that do not run correctly in PowerShell 7.x because of the difference in the dotNet runtimes between them. You will need to run 'Install-Module' again under PowerShell 7.x.