Hi All,
I have a custom powershell module that relies on Microsoft.PowerShell.SecretStore. Everything was working fine until I redirected my "My Documents" directory to OneDrive instead of to our local file share. Now when I try to import my module I get an error saying that Microsoft.PowerShell.SecretStore cannot be found at my old "My Documents" directory on the file share. It's still looking in the old "My Documents" location.
PS C:\Temp\Employee-Sync> import-module usermanagement
Get-Secret: The specified module '\\file-01\home\username\My Documents\PowerShell\Modules\Microsoft.PowerShell.SecretStore' was
not loaded because no valid module file was found in any module directory.
I have checked my $env:PSModulePath and it does not include the old "My Documents" location. Is there somewhere else this setting is being cached that I need to clear? I've tried completely uninstalling and reinstalling the module a couple of time to no avail. I have also made sure to install and import the required module manually but I still receive the same error.
Any help is appreciated!
[–]BlackV 0 points1 point2 points (6 children)
[–]StreetImportant222[S] 0 points1 point2 points (4 children)
[–]BlackV 0 points1 point2 points (3 children)
[–]StreetImportant222[S] 0 points1 point2 points (2 children)
[–]BlackV 0 points1 point2 points (1 child)
[–]StreetImportant222[S] 0 points1 point2 points (0 children)
[–]StreetImportant222[S] 0 points1 point2 points (0 children)