-
Notifications
You must be signed in to change notification settings - Fork 47
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
Get-SecretInfo: The specified module '...\Microsoft.PowerShell.SecretStore' was not loaded because no valid module file was found in any module directory. #217
Comments
Hmm,
|
OK, edited this file |
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. |
Also, I'm hoping a future version of PowerShell moves modules out of |
Prerequisites
Steps to reproduce
I'm not sure how to reproduce this since this only happens on my work PC which has redirected my
~\Document\PowerShell
folder to a corporate OneDrive folder. SecretManagement/Store used to not give this error before my company forced this redirection. Note that the command still works but it is annoying getting this error spit out every time. Basically, all I have to do to get this error is:Get-SecretInfo
I've tried preloading the modules and I still get this error:
The preloaded modules were loading from:
Finally, my
$env:PSModulePath
is set to:I do not understand why there is an attempt to load from
C:\Users\hillr\Documents\PowerShell\Modules\
.Expected behavior
I should see no error about the module file not being found.
Actual behavior
Error details
Environment data
Version
1.1.2
Visuals
No response
The text was updated successfully, but these errors were encountered: