SharePoint Saturday Belgium 2017 • October 21 • Brussels Track: Mix & Match| Level: 300
Use PowerShell superpower to tame your Office 365
Gilles Pommier & Joelle Ruelle
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Agenda
• PowerShell & Office 365:
All you need to know
• PowerShell & SharePoint automation
• Démos and again démos !
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Paris
WebConSuperHeros
Community
member
SmartView.fr Office 365
MVP
Gilles.pommie
r
@smartview.fr
Who are we ?
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Who are we ?
Montpellier SmartView.fr Office Dev MVP
RuelleJoelleJoelle.ruelle
@smartview.fr @RuelleJoelle
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Office 365 Management
APIs
PowerShellfor Office
365
Office 365
Admin
Center
Office 365
Admin App
Automate and personalize.Save effort and time.
« Ready to use » solution.Simple but expandable.
« On the go » solution.Perform routine admin tasks.
Manage Office 365
Develop.Manage Office 365.
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Reveal additional
information
Activate hidden
features
Perform bulk operations and data
migration.
The power of the Office 365 and PowerShell duo
Manage across server
products
Print or save data
Filtering tool
SharePoint Saturday Belgium 2017 • October 21 • Brussels
A little boost
http://powershell.office.com
http://www.powershellgallery.com
Set of samples, scenarios and guides…
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Office 365 services$exchangeSession = New-PSSession-ConfigurationName Microsoft.Exchange -ConnectionUri"https://outlook.office365.com/powershell-liveid/"-Credential $credential-Authentication "Basic" -AllowRedirectionImport-PSSession $exchangeSession
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameCheckingConnect-SPOService -Url https://$domainHost-admin.sharepoint.com-credential $credential
Import-Module SkypeOnlineConnector$sfboSession = New-CsOnlineSession-Credential $credentialImport-PSSession $sfboSession
Import-Module MsOnlineConnect-MsolService
-Credential $credential
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Toolbox
Microsoft .NET Framework 3.5.x Windows Management Framework 3.0 or 4.0.Install:
Microsoft Online Services Sign-in AssistantMicrosoft Azure Active Directory Module for Windows PowerShell Skype for Business Online PowerShell Module SharePoint Online Management Shell
An tenant
Administrator privileges on your tenant or farm
Administrator privileges on machine
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Tame SharePoint Online
With the SharePoint
Online module.
With the SharePoint Client side
Object Model (CSOM).
With the OfficeDev PnP
PowerShell commands.
With the SharePoint REST
APIs.
With the classical
development solutions.
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Tip and Trick: Organize your scripts
Project deployment Folder
Application Files Folder
Launcher
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Tip and Trick: Think SharePoint
SPListItem
SPList
SPWeb
SPSite
SharePoint Saturday Belgium 2017 • October 21 • Brussels
The CmdLets
964
33
SharePoint On-Prem
SharePoint Online
THE GAP WIDENS BETWEEN SP ONLINE AND ON-PREM
Number of available CmdLets
SharePoint Saturday Belgium 2017 • October 21 • Brussels
Go further: SharePoint / O365 Dev PnP PowerShell CmdLets