Using the SharePoint .NET API to Extend PowerShell

The set of built-in SharePoint PowerShell cmdlets enable you to manage your SharePoint farm, all the features, site collections, and sites. These cmdlets do not give you access to SharePoint lists, pages, workflows, and so on. This limitation can be easily overcome by using the existing SharePoint .NET API.

To use the additional API (SharePoint, in this example) functions, API must be referenced before using its objects and functions:

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.