Comments (4)
Thank you rkeithhill. I was receiving the same error. I had looked around for a few hours for the file which held the string to that path which was being used but which was no longer correct to reach the SecretStore module. And the "vaultinfo" file was where the data was.
It seems that, in your case and mine, the problem with the path to the SecretStore module occurred because, at some time point after installation of the Microsoft SecretStore, the path to the special \Documents\ (aka "MyDocuments") folder in Windows was changed, and the contents of the \Documents\ folder moved to the new location. So, the folder which contains the SecretStore module was moved to that new location.
And for the SecretStore, Microsoft had used an algorithm such that the path listed in the "vaultinfo" file contains a string which pointed to the location of the Documents special folder at the time of installation of the Microsoft SecretStore.
So, I suggest that, in the next version of SecretStore, Microsoft change the algorithm so that the path listed in the "vaultinfo" file will contain a string which points to the Documents special folder. That way the path can be found at runtime, rather than at installation of the SecretStore module.
from secretmanagement.
Hmm,
> Get-SecretVault | fl *
Name : BuiltInLocalVault
ModuleName : SecretManagement.JustinGrote.CredMan
ModulePath : C:\Program Files (x86)\Universal\Modules\SecretManagement.JustinGrote.CredMan
Description :
VaultParameters : {}
IsDefault : False
Name : LocalStore
ModuleName : Microsoft.PowerShell.SecretStore
ModulePath : C:\Users\hillr\Documents\PowerShell\Modules\Microsoft.PowerShell.SecretStore
Description :
VaultParameters : {}
IsDefault : True
Name : PSUSecretStore
ModuleName : Microsoft.PowerShell.SecretStore
ModulePath : C:\Users\hillr\OneDrive - Keysight
Technologies\Documents\PowerShell\Modules\Microsoft.PowerShell.SecretStore
Description :
VaultParameters : {}
IsDefault : False
from secretmanagement.
OK, edited this file "$HOME\AppData\Local\Microsoft\PowerShell\secretmanagement\secretvaultregistry\vaultinfo"
to fix the bogus old (pre-OneDrive migration) path and now the annoying error is gone.
from secretmanagement.
Also, I'm hoping a future version of PowerShell moves modules out of Documents\PowerShell\Modules
into a $HOME\AppData\Local
folder. That would have prevented this problem from occurring.
from secretmanagement.
Related Issues (20)
- Test-SecretVault cmdlet failing with "Assembly with same name is already loaded" HOT 2
- Documentation is just the stock help template. HOT 1
- Verbose output for Get-Secret is incorrect
- Get-Secret is Overzealous in SecureString Generation When Returning Hashtables. HOT 8
- CredManStore does not appear to work in a PowerShell remote session
- Provide Password/Passphrase Generator
- Inconsistent behaviour of -Verbose when encountering Throw HOT 1
- While developing an extension: Prevent session restart for reloading the module HOT 2
- AdditionalParameters is providing a CaseSensitive HashTable HOT 2
- Random unexpected secrets appear in vault HOT 1
- Get-SecretInfo : Exception calling "GetInstance" with "0" argument(s): "Padding is invalid and cannot be removed."
- Publish the library as netstandard20
- Secret object type for deeper integration HOT 2
- Binary extension module not returning objects?
- Add ArgumentCompleters
- Creating a Secret HOT 1
- Make secret vaults not require use of PowerShell HOT 1
- Set/Add/New secret should be separate cmdlets HOT 1
- Set-Secret asks for password to unlock vault that has already been unlocked with Unlock-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 secretmanagement.