locked
How register Microsoft.SharePoint.PowerShell snapin? RRS feed

  • Question

  • I am on Windows Server 2003 Standard edition, 32-bit platform. I have MOSS 2007 installed. I am writing a PowerShell script that is using the Microsoft.SharePoint.PowerShell snap-in.

    I don't know how to register it.

    When i put commad:

    Add-PsSnapin Microsoft.SharePoint.PowerShell

    it gives me error

    Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.
    At line:1 char:13
    + Add-PsSnapin <<<<  Microsoft.SharePoint.PowerShell
        + CategoryInfo          : InvalidArgument: (Microsoft.SharePoint.PowerShell:String) [Add-PSSnapin], PSArgumentExce
       ption
        + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

    How to register this snap-in?

    Friday, September 16, 2011 5:39 AM

Answers