none
import module sharepoint using powershell RRS feed

All replies

  • You need to have Administrative Privilege while running the PowerShell, if SharePoint is installed on the system you can use as following to load SharePoint module 

    Add-PSSnapin Microsoft.SharePoint.Powershell

    Else, if you are using SharePoint Client Object Model, then first download and install "SharePoint Server 2013 Client Components SDK", it will be at location "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI".

    Go to that location in PowerShell, do as following 

    Add-Type -Path .\Microsoft.SharePoint.Client.dll
    Add-Type -Path .\Microsoft.SharePoint.Client.Runtime.dll

    It will load Client dll of SharePoint.


    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.


    Tuesday, January 17, 2017 4:15 PM
  • Hi,

    Please check the articles below:

    THE SharePoint PowerShell Module (SPoshMod)

    https://sposhmod.codeplex.com/

    Add Microsoft.SharePoint.PowerShell Snap-In to All PowerShell Windows

    https://blogs.msdn.microsoft.com/kaevans/2011/11/14/add-microsoft-sharepoint-powershell-snap-in-to-all-powershell-windows/

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, January 18, 2017 7:58 AM
    Moderator
  • Hi,

    Any update?

    If the replies help you, please mark the reply as answer, it will make others who stuck with the similar issue easier to search for valid solutions in this forum.

    Thanks


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, January 24, 2017 1:42 AM
    Moderator