Cannot find cert: drive or Certificate Provider via Powershell

Question:

For some reason, it seems that my install of Windows 10/Powershell 5.0 is missing the Certificate Provider. It seems like I somehow don’t even have the Microsoft.PowerShell.Security module that is supposed to be installed with powershell by default and includes the certificate provider. Here is what I get when I run Get-Module (I added post-git sometime ago, maybe I messed it up when I did that?):

and here is what I get when I run Get-PSProvider:

Is there anyway that I can reinstall PowerShell or add this provider/drive to my build without reinstalling Windows entirely? Something very fishy seems to have happened to my machine and I’d really rather not do a full reinstall if not absolutely necessary.

Answer:

I came to find the same issue.

I my case the problem was the PSModulePath environment variable did not have the right paths in it.

Source:

Cannot find cert: drive or Certificate Provider via Powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply