2

I want to install SharePoint powershell module into my local PC, and received error message

'Microsoft.SharePoint.PowerShell' is not installed on this computer.

After google, noticed that sharepoint dll is missing on my machine. My question is how to get the sharepoint dll ? Do I need to install SharePoint to my local machine ?

5eleven7
  • 29
  • 1
  • 6
user1902849
  • 1,113
  • 6
  • 23
  • 33

2 Answers2

3

If you're using SharePoint Online (Office 365) there's a Management Shell available

If you're using any other version you indeed need to install SharePoint Server itself to get the PSSnapin on your local computer, there's no 'Management Tools only' option for SharePoint (like there is for Exchange).

You could also RDP onto an existing SharePoint Server and run your script.

Or use a PSSession to connect to the Server via PowerShell like this:

New-PSSession -ComputerName SharePointServer01
Add-PSSnapin Microsoft.SharePoint.Powershell

To do this PSRemoting will need to be enabled on the Server

henrycarteruk
  • 12,708
  • 2
  • 36
  • 40
1

Yes, it appears that you need to install/use this module on the local machine where SharePoint is installed and/or use PowerShell Remoting.

Mark Wragg
  • 22,105
  • 7
  • 39
  • 68