Comments (6)
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…
from secretstore.
I've encountered a weird situation.
- Uninstalling the outdated version 0.9 is not possible with pwsh "run as administrator" (locked down corporate W10 1909 Enterprise environment).
- SecretStore extension vault is not registered
Any suggestions?
PS C:\Windows\System32> Uninstall-Module Microsoft.PowerShell.SecretStore -Force
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
| 'Microsoft.PowerShell.SecretStore'.
PS C:\Windows\System32> Get-Module Microsoft.PowerShell.SecretStore -list
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:\Windows\System32> Install-Module -Name Microsoft.PowerShell.SecretStore -Repository PSGallery -Force
PS C:\Windows\System32> Get-Module Microsoft.PowerShell.SecretStore -list
Directory: C:\Users\Engineer\Documents\PowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 1.0.2 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:\Windows\System32> Get-SecretVault
PS C:\Windows\System32>
PS C:\Windows\System32> $PSVersionTable
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
from secretstore.
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.
from secretstore.
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)
from secretstore.
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)
from secretstore.
@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.
from secretstore.
Related Issues (20)
- Getting "Padding is invalid and cannot be removed" when trying to use store in local session when it was set up with remoting HOT 38
- Add better error message for failure when running under Windows built-in accounts HOT 1
- SecretStore requires Full Language mode HOT 5
- need documentation on backup/restore operation of the vaults HOT 2
- Passswordless SecretManagement
- How to use SecretStore for automatic pwd PSSession to linux? HOT 2
- Registering an additional store just creates another reference to the first store HOT 5
- There is no possibility to choose a custom file path HOT 6
- Set-SecretStoreConfiguration -Authentication None often fails HOT 7
- Request - Lock-SecretStore cmdlet HOT 1
- Windows 11 Upgrade: Store File Corruption HOT 2
- Unable to register SecretStore without supplying a password HOT 4
- Set-SecretStoreConfiguration doesn't properly support Confirm:$false HOT 4
- Unlock-SecretStore not working when using Remote-SSH connection in VsCode HOT 4
- Cannot use Set-SecretStorePassword with parameter arguments to set a new password, without an existing password HOT 1
- Updating module in pwsh 7.2
- Reset-SecretStore doesn't respect-Confirm:$false
- Set-SecretStoreConfiguration failed under Linux HOT 1
- Unlock-SecretStore randomly fails after running Reset-SecretStore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secretstore.