Coder Social home page Coder Social logo

pnp-powershell's Introduction

OfficeDevPnP.PowerShell Commands

Summary

This solution shows how you can build a library of PowerShell commands that act towards SharePoint Online. The commands use CSOM and can work against both SharePoint Online as SharePoint On-Premises.

Applies to

  • Office 365 Multi Tenant (MT)
  • Office 365 Dedicated (D)
  • SharePoint 2013 on-premises

Prerequisites

In order to build the setup project the WiX toolset needs to be installed. You can obtain this from http://wix.codeplex.com. If you use Visual Studio 2015 you will need at least WiX 3.10, which can be downloaded from here: http://wixtoolset.org/releases/

In order to generate the generate the Cmdlet help you need Windows Management Framework v4.0 which you can download from http://www.microsoft.com/en-us/download/details.aspx?id=40855

Solution

Solution Author(s)
OfficeDevPnP.PowerShell Erwin van Hunen

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


HOW TO USE AGAINST OFFICE 365

A build script will copy the required files to a folder in your users folder, called: C:\Users<YourUserName>\Documents\WindowsPowerShell\Modules\OfficeDevPnP.PowerShell.Commands

This will automatically load the module after starting PowerShell 3.0. To use the library you first need to connect to your tenant:

Connect-SPOnline –Url https://yoursite.sharepoint.com –Credentials (Get-Credential)

In case of an unattended script you might want to add a new entry in your credential manager of windows.

Select Windows Credentials and add a new generic credential:

Now you can use this entry to connect to your tenant as follows:

Connect-SPOnline –Url https://yoursite.sharepoint.com –Credentials yourlabel

Commands

Navigate here for an overview of all cmdlets and their parameters:

pnp-powershell's People

Contributors

afsandeberg avatar artokai avatar briankinsella avatar erwinvanhunen avatar ibondy avatar jansenbe avatar laskewitz avatar rjesh-git avatar vesajuvonen avatar wobba avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.