Unable to find module providers
<p>I'm having an issue with PowerShell. It's almost like it's not installed all the way; which is weird since it's Windows&nbsp;10 and it ships with it.</p>

<p>With no lock, I've tried replacing the following directories with a fresh copy from another Windows&nbsp;10 machine that is working:</p>

<ul>
<li>C:\Users\UserName\AppData\Local\PackageManagement</li>
<li>C:\Program Files\WindowsPowerShell</li>
<li>C:\Program Files (x86)\WindowsPowerShell</li>
<li>C:\Windows\System32\WindowsPowerShell</li>
</ul>

<p>I also tried <code>SFC /scannow</code>, but it found no issues. I've searched for hours and haven't been able to find anyone with the exact same issue.  Does anyone have any ideas?</p>

<h3>System Information:</h3>

<pre><code>PS C:\WINDOWS\system32&gt; [environment]::OSVersion.Version
Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      10586  0
</code></pre>

<hr>

<pre><code>PS C:\WINDOWS\system32&gt; $PSVersionTable.PSVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  122
</code></pre>

<hr>

<h3>Errors:</h3>

<pre><code>PS C:\WINDOWS\system32&gt; Get-PSRepository
PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:3544 char:31
+ ... ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument:(Microsoft.Power...etPackageSource:GetPackageSource) [Get-PackageSource
   ], Exception
    + FullyQualifiedErrorId : UnknownProviders,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageSource
</code></pre>

<hr>

<pre><code>PS C:\WINDOWS\system32&gt; Get-PackageProvider -Name PSModule -ForceBootstrap
Get-PackageProvider : Unable to find package provider 'PSModule'. It may not be imported yet. Try 'Get-PackageProvider
-ListAvailable'.
At line:1 char:1
+ Get-PackageProvider -Name PSModule -ForceBootstrap
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...PackageProvider:GetPackageProvider) [Get-PackageProvi
   der], Exception
    + FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPacka
   geProvider
</code></pre>

<h3>The below returns nothing:</h3>

<pre><code>PS C:\WINDOWS\system32&gt; Get-PackageProvider -ListAvailable
PS C:\WINDOWS\system32&gt;
</code></pre>