title: Windows PowerShell snap-in 'Microsoft.Sharepoint.Powershell' is not installed on this computer?
body: <p>I am new in using powershell, I have been trying to solve this problem for hours and I cant still make it work.</p>
  
  <p>Prerequisites:</p>
  
  <ul>
  <li>Using windows 10  </li>
  <li>Running the Powershell ISE as Administrator</li>
  </ul>
  
  <p>But when I used the "<code>Add-PSSnapin WebAdministration</code>"</p>
  
  <p>Command that I am trying to run:</p>
  
  <pre><code>Add-PSSnapin Microsoft.Sharepoint.Powershell
  $siteURL = Get-SPOSite "site"
  $sitelists = foreach ($web in $siteURL.AllWebs) {
  foreach($list in $web.lists){ $list } }
  $sitelists |select * | Export-CSV C:\liststitles.csv
  </code></pre>
  
  <p>It shows the following error:</p>
  
  <pre><code>PS C:\windows\system32&gt; Add-PSSnapin Microsoft.Sharepoint.Powershell
  Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Sharepoint.Powershell' is not installed on this computer.
  At line:1 char:1
  + Add-PSSnapin Microsoft.Sharepoint.Powershell
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (Microsoft.Sharepoint.Powershell:String) [Add-PSSnapin], PSArgumentEx 
     ception
      + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
  </code></pre>
  
  <p>I also downloaded the "iis7psprov_x64.msi", but I don't know how to install it since I cant run it as administrator. and also I have read that, it should be available in the "WebAdminstration" module. When trying to run the file the following error is prompted:</p>
  
  <p><a href="https://i.stack.imgur.com/giGDi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/giGDi.png" alt="enter image description here"></a></p>
  
  <p>Might be simmlar to this but for windows 10:</p>
  
  <p><a href="https://stackoverflow.com/questions/10700660/add-pssnapin-webadministration-in-windows7">Add-PsSnapin WebAdministration in Windows7</a></p>