2. Manage, govern and drive
adoption of SharePoint Online
with PowerShell and CSOM
3. Who we are?
João Oliveira
joao.oliveira@microsoft.com
SharePoint Premier Field Engineer
Nuno Oliveira Costa
ncosta@microsoft.com
SharePoint Premier Field Engineer
6. Powershell Flavors to manage SP Online
Flavor Notes Examples When installed you’ll have:
SharePoint Online
(SPO) cmdlets
These are SharePoint Online specific,
and can be identified by “SPO” in the
noun part of the cmdlet.
•Get-SPOSite (to list your site collections
in Office 365)
•New-SPOSite (to create a new site
collection)
MS Online
(MSOL)/WAAD
cmdlets
These are commands related to an
Office 365 tenancy (but not
necessarily specific to Exchange, Lync
or SharePoint) and can be identified
by “Msol” in the noun part of the
cmdlet.
•Get-MSolUser (to list users in your
tenancy)
•Set-MsolUserPassword (to update a
password)
Using SP CSOM
in PS scripts
The main focus of this Session. •Activating a Feature in SharePoint
Online
•Updating webs or lists in SharePoint
Online
No install needed – you can run this type of scripts in a
regular Windows PowerShell command prompt.
NOTE: It requires having the .NET Client Object Model
installed.
Using Exchange
Online
PowerShell
If you are building a script that
responds to trends in usage patterns
•Get-SPOSkyDriveProDeployedReport
•Get-SPOSkyDriveProStorageReport
No install needed – you can run this type of scripts in a
regular Windows PowerShell command prompt
Remote PowerShell Session
17. Office 365 Development Patterns & Practices
https://github.com/OfficeDev/PnP
https://www.yammer.com/itpronetwork
18. Package Folder Structure
All referenced assemblies are included
in package.
Contains latest 15 and 16 CSOM
components when package was
released.
No need for additional downloads.
Reusable remote operation
component with extension methods to
standard CSOM objects.
Reusable components targeted for
reuse as such in projects.
Sample projects. Independent samples
demonstrating a capability or
functionality.
Complex reusable solutions
demonstrating combining multiple
capabilities for building real solution.
Uses core component.
Scenario demonstrations for the usage
of the core component. Contains
additional explanations and usage
models for API patterns.