SlideShare a Scribd company logo
1 of 20
13/09/2014
Manage, govern and drive 
adoption of SharePoint Online 
with PowerShell and CSOM
Who we are? 
João Oliveira 
joao.oliveira@microsoft.com 
SharePoint Premier Field Engineer 
Nuno Oliveira Costa 
ncosta@microsoft.com 
SharePoint Premier Field Engineer
Agenda
Introduction Governance and Adoption – 
[current] Landscape
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
Common Tasks available through SPO Powershell
Demo
The power of PowerShell with SPO in action
PowerShell Cmdlets 
On Prem vs Online 
SharePoint 2013 on Prem SharePoint Online 
774 
30 
900 
800 
700 
600 
500 
400 
300 
200 
100 
0 
Cmdlets
PowerShell + CSOM: How does it work? 
# User Info 
$username = "joolive@spugpt33.onmicrosoft.com" 
$password = "pass@word1" 
$url = "https://spugpt33.sharepoint.com/" 
$securePassword = ConvertTo-SecureString $Password -AsPlainText -Force 
# Core 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.dll" -EA 0 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Runtime.dll" -EA 0 
# Additional libs 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Taxonomy.dll" -EA 0 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.DocumentManagement.dll" - 
EA 0 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Publishing.dll" -EA 0 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Search.dll" -EA 0 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.UserProfiles.dll" -EA 0 
Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.WorkflowServices.dll" -EA 
0 
# Authenticate to SharePoint Online 
$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($url) 
$credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $securePassword) 
$clientContext.Credentials = $credentials 
if (!$clientContext.ServerObjectIsNull.Value) 
{ 
Write-Host "Connected to SharePoint Online site: '$Url'" -ForegroundColor Green 
}
How to activate a Hidden Feature? 
# this is the side-loading Feature ID..
Demo
Office 365 Reporting Cmdlets
Demo
Govern SPO DEV! (wait, … what?)
Office 365 Development Patterns & Practices 
https://github.com/OfficeDev/PnP 
https://www.yammer.com/itpronetwork
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.
Demo
Questions?

More Related Content

What's hot

Apex behind the scenes
Apex behind the scenesApex behind the scenes
Apex behind the scenesEnkitec
 
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nycJohn Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nycSharePoint Saturday NY
 
Spsto 2013 whats_newinworkflows_amitvasu.
Spsto 2013 whats_newinworkflows_amitvasu.Spsto 2013 whats_newinworkflows_amitvasu.
Spsto 2013 whats_newinworkflows_amitvasu.amitvasu
 
Automating Web Application Deployment
Automating Web Application DeploymentAutomating Web Application Deployment
Automating Web Application DeploymentMathew Byrne
 
Vaadin 7 by Joonas Lehtinen
Vaadin 7 by Joonas LehtinenVaadin 7 by Joonas Lehtinen
Vaadin 7 by Joonas LehtinenCodemotion
 
Spsdc what's new in share point 2013 workflow
Spsdc   what's new in share point 2013 workflowSpsdc   what's new in share point 2013 workflow
Spsdc what's new in share point 2013 workflowamitvasu
 
Office servers summit_teams_spo
Office servers summit_teams_spoOffice servers summit_teams_spo
Office servers summit_teams_spoPawel Czarnecki
 
Setting up development environment for building SharePoint Framework solution...
Setting up development environment for building SharePoint Framework solution...Setting up development environment for building SharePoint Framework solution...
Setting up development environment for building SharePoint Framework solution...Waldek Mastykarz
 
Ddps 2013 office web apps
Ddps 2013 office web appsDdps 2013 office web apps
Ddps 2013 office web appsthinkofdevil
 
PowerShell Basics for Office Apps and Servers
PowerShell Basics for Office Apps and ServersPowerShell Basics for Office Apps and Servers
PowerShell Basics for Office Apps and ServersGreg McMurray
 
TypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkBob German
 
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
[Patel] SPFx: An ISV Insight into latest Microsoft's customization modelEuropean Collaboration Summit
 
Windows power shell for sharepoint online & office 365
Windows power shell for sharepoint online & office 365Windows power shell for sharepoint online & office 365
Windows power shell for sharepoint online & office 365Prashant Kumar Singh
 
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Niels de Bruijn
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0Buu Nguyen
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauSpiffy
 
Web API authentication and authorization
Web API authentication and authorization Web API authentication and authorization
Web API authentication and authorization Chalermpon Areepong
 

What's hot (20)

Flows for APEX
Flows for APEXFlows for APEX
Flows for APEX
 
Apex behind the scenes
Apex behind the scenesApex behind the scenes
Apex behind the scenes
 
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nycJohn Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
 
Spsto 2013 whats_newinworkflows_amitvasu.
Spsto 2013 whats_newinworkflows_amitvasu.Spsto 2013 whats_newinworkflows_amitvasu.
Spsto 2013 whats_newinworkflows_amitvasu.
 
Automating Web Application Deployment
Automating Web Application DeploymentAutomating Web Application Deployment
Automating Web Application Deployment
 
Vaadin 7 by Joonas Lehtinen
Vaadin 7 by Joonas LehtinenVaadin 7 by Joonas Lehtinen
Vaadin 7 by Joonas Lehtinen
 
Spsdc what's new in share point 2013 workflow
Spsdc   what's new in share point 2013 workflowSpsdc   what's new in share point 2013 workflow
Spsdc what's new in share point 2013 workflow
 
Office servers summit_teams_spo
Office servers summit_teams_spoOffice servers summit_teams_spo
Office servers summit_teams_spo
 
Setting up development environment for building SharePoint Framework solution...
Setting up development environment for building SharePoint Framework solution...Setting up development environment for building SharePoint Framework solution...
Setting up development environment for building SharePoint Framework solution...
 
Vaadin NYC Meetup
Vaadin NYC MeetupVaadin NYC Meetup
Vaadin NYC Meetup
 
Ddps 2013 office web apps
Ddps 2013 office web appsDdps 2013 office web apps
Ddps 2013 office web apps
 
PowerShell Basics for Office Apps and Servers
PowerShell Basics for Office Apps and ServersPowerShell Basics for Office Apps and Servers
PowerShell Basics for Office Apps and Servers
 
ASP.NET 4.0 Roadmap
ASP.NET 4.0 RoadmapASP.NET 4.0 Roadmap
ASP.NET 4.0 Roadmap
 
TypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint Framework
 
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
 
Windows power shell for sharepoint online & office 365
Windows power shell for sharepoint online & office 365Windows power shell for sharepoint online & office 365
Windows power shell for sharepoint online & office 365
 
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
 
Web API authentication and authorization
Web API authentication and authorization Web API authentication and authorization
Web API authentication and authorization
 

Viewers also liked

벤처투자 소득공제
벤처투자 소득공제벤처투자 소득공제
벤처투자 소득공제Opentrade
 
Palestra familia como educadora dos sentimentos
Palestra familia como educadora dos sentimentosPalestra familia como educadora dos sentimentos
Palestra familia como educadora dos sentimentosSandra Cecília Rocha
 
Casamento na Visão e a família
Casamento na Visão e a  famíliaCasamento na Visão e a  família
Casamento na Visão e a famíliaClaudio Macedo
 
A importancia familia
A importancia familia A importancia familia
A importancia familia Elsa Cristina
 
Familia uma lei divina de amor macedo-2013
Familia uma lei divina de amor macedo-2013Familia uma lei divina de amor macedo-2013
Familia uma lei divina de amor macedo-2013Claudio Macedo
 
Aula 5 Mocidade Espírita Chico Xavier - Família
Aula 5 Mocidade Espírita Chico Xavier - FamíliaAula 5 Mocidade Espírita Chico Xavier - Família
Aula 5 Mocidade Espírita Chico Xavier - FamíliaSergio Lima Dias Junior
 
Desafios da vida em família
Desafios da vida em famíliaDesafios da vida em família
Desafios da vida em famíliaLeonardo Pereira
 
A família na visão espírita
A família na visão espíritaA família na visão espírita
A família na visão espíritabalsense
 
Palestra reencarnação e laços de família
Palestra reencarnação e laços de famíliaPalestra reencarnação e laços de família
Palestra reencarnação e laços de famíliaAnderson Santos
 
Maternal and child health nursing
Maternal and child health nursingMaternal and child health nursing
Maternal and child health nursingRuby Shelah Dunque
 
A família na visão espírita
A família na visão espíritaA família na visão espírita
A família na visão espíritaJerri Almeida
 
Palestra família
Palestra famíliaPalestra família
Palestra famíliapmgv5
 
Tipos de Família
Tipos de Família Tipos de Família
Tipos de Família Cordeiro_
 
Slides palestra família
Slides palestra famíliaSlides palestra família
Slides palestra famíliaClarice-Borges
 

Viewers also liked (19)

SP24 S055 SharePointToolbox by Rodrigo Pinto
SP24 S055 SharePointToolbox by Rodrigo PintoSP24 S055 SharePointToolbox by Rodrigo Pinto
SP24 S055 SharePointToolbox by Rodrigo Pinto
 
벤처투자 소득공제
벤처투자 소득공제벤처투자 소득공제
벤처투자 소득공제
 
André Vala - User License Enforcement em SharePoint 2013
André Vala - User License Enforcement em SharePoint 2013André Vala - User License Enforcement em SharePoint 2013
André Vala - User License Enforcement em SharePoint 2013
 
New Born Lecture
New Born LectureNew Born Lecture
New Born Lecture
 
Palestra familia como educadora dos sentimentos
Palestra familia como educadora dos sentimentosPalestra familia como educadora dos sentimentos
Palestra familia como educadora dos sentimentos
 
Casamento na Visão e a família
Casamento na Visão e a  famíliaCasamento na Visão e a  família
Casamento na Visão e a família
 
A importancia familia
A importancia familia A importancia familia
A importancia familia
 
Familia uma lei divina de amor macedo-2013
Familia uma lei divina de amor macedo-2013Familia uma lei divina de amor macedo-2013
Familia uma lei divina de amor macedo-2013
 
Aula 5 Mocidade Espírita Chico Xavier - Família
Aula 5 Mocidade Espírita Chico Xavier - FamíliaAula 5 Mocidade Espírita Chico Xavier - Família
Aula 5 Mocidade Espírita Chico Xavier - Família
 
Laços familia
Laços familiaLaços familia
Laços familia
 
Desafios da vida em família
Desafios da vida em famíliaDesafios da vida em família
Desafios da vida em família
 
A família na visão espírita
A família na visão espíritaA família na visão espírita
A família na visão espírita
 
Palestra reencarnação e laços de família
Palestra reencarnação e laços de famíliaPalestra reencarnação e laços de família
Palestra reencarnação e laços de família
 
Maternal and child health nursing
Maternal and child health nursingMaternal and child health nursing
Maternal and child health nursing
 
A família na visão espírita
A família na visão espíritaA família na visão espírita
A família na visão espírita
 
A casa que deus quer - UMA PALAVRA PARA FAMÍLIA
A casa que deus quer - UMA PALAVRA PARA FAMÍLIAA casa que deus quer - UMA PALAVRA PARA FAMÍLIA
A casa que deus quer - UMA PALAVRA PARA FAMÍLIA
 
Palestra família
Palestra famíliaPalestra família
Palestra família
 
Tipos de Família
Tipos de Família Tipos de Família
Tipos de Família
 
Slides palestra família
Slides palestra famíliaSlides palestra família
Slides palestra família
 

Similar to SPugPt Meeting 35: Manage govern and drive adoption of share point online with powershell and csom

How to do everything with PowerShell
How to do everything with PowerShellHow to do everything with PowerShell
How to do everything with PowerShellJuan Carlos Gonzalez
 
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...Sébastien Levert
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopMichael Blumenthal (Microsoft MVP)
 
Webinar - Office 365 & PowerShell : A Match Made in Heaven
Webinar - Office 365 & PowerShell : A Match Made in HeavenWebinar - Office 365 & PowerShell : A Match Made in Heaven
Webinar - Office 365 & PowerShell : A Match Made in HeavenSébastien Levert
 
2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to AppsGilles Pommier
 
Operacion Guinda 2
Operacion Guinda 2Operacion Guinda 2
Operacion Guinda 2Red RADAR
 
SharePoint Fest Chicago 2015 - Anatomy of configuring provider hosted add-in...
SharePoint Fest Chicago 2015  - Anatomy of configuring provider hosted add-in...SharePoint Fest Chicago 2015  - Anatomy of configuring provider hosted add-in...
SharePoint Fest Chicago 2015 - Anatomy of configuring provider hosted add-in...Nik Patel
 
An Introduction to the Office 365 Patterns and Practices Project
An Introduction to the Office 365 Patterns and Practices ProjectAn Introduction to the Office 365 Patterns and Practices Project
An Introduction to the Office 365 Patterns and Practices ProjectSPC Adriatics
 
SharePoint for the .NET Developer
SharePoint for the .NET DeveloperSharePoint for the .NET Developer
SharePoint for the .NET DeveloperJohn Calvert
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNick Hadlee
 
Intro to PowerShell
Intro to PowerShellIntro to PowerShell
Intro to PowerShellAdam Preston
 
Mai Omar Desouki - SharePoint 2010 ITPRO
Mai Omar Desouki - SharePoint 2010 ITPROMai Omar Desouki - SharePoint 2010 ITPRO
Mai Omar Desouki - SharePoint 2010 ITPROMai Omar Desouki
 
Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Mohan Arumugam
 
PHP on Windows and on Azure
PHP on Windows and on AzurePHP on Windows and on Azure
PHP on Windows and on AzureMaarten Balliauw
 
Automating PowerShell with SharePoint
Automating PowerShell with SharePointAutomating PowerShell with SharePoint
Automating PowerShell with SharePointTalbott Crowell
 
SPO Migration - New API
SPO Migration - New APISPO Migration - New API
SPO Migration - New APIAshish Trivedi
 
SPSBE18: New era of customizing site provisioning
SPSBE18: New era of customizing site provisioningSPSBE18: New era of customizing site provisioning
SPSBE18: New era of customizing site provisioningOlli Jääskeläinen
 
New era of customizing site provisioning
New era of customizing site provisioningNew era of customizing site provisioning
New era of customizing site provisioningBIWUG
 

Similar to SPugPt Meeting 35: Manage govern and drive adoption of share point online with powershell and csom (20)

How to do everything with PowerShell
How to do everything with PowerShellHow to do everything with PowerShell
How to do everything with PowerShell
 
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
 
Webinar - Office 365 & PowerShell : A Match Made in Heaven
Webinar - Office 365 & PowerShell : A Match Made in HeavenWebinar - Office 365 & PowerShell : A Match Made in Heaven
Webinar - Office 365 & PowerShell : A Match Made in Heaven
 
Introducción al SharePoint Framework SPFx
Introducción al SharePoint Framework SPFxIntroducción al SharePoint Framework SPFx
Introducción al SharePoint Framework SPFx
 
2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps
 
Operacion Guinda 2
Operacion Guinda 2Operacion Guinda 2
Operacion Guinda 2
 
SharePoint Fest Chicago 2015 - Anatomy of configuring provider hosted add-in...
SharePoint Fest Chicago 2015  - Anatomy of configuring provider hosted add-in...SharePoint Fest Chicago 2015  - Anatomy of configuring provider hosted add-in...
SharePoint Fest Chicago 2015 - Anatomy of configuring provider hosted add-in...
 
An Introduction to the Office 365 Patterns and Practices Project
An Introduction to the Office 365 Patterns and Practices ProjectAn Introduction to the Office 365 Patterns and Practices Project
An Introduction to the Office 365 Patterns and Practices Project
 
SharePoint for the .NET Developer
SharePoint for the .NET DeveloperSharePoint for the .NET Developer
SharePoint for the .NET Developer
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePoint
 
Intro to PowerShell
Intro to PowerShellIntro to PowerShell
Intro to PowerShell
 
Mai Omar Desouki - SharePoint 2010 ITPRO
Mai Omar Desouki - SharePoint 2010 ITPROMai Omar Desouki - SharePoint 2010 ITPRO
Mai Omar Desouki - SharePoint 2010 ITPRO
 
Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013
 
PHP on Windows and on Azure
PHP on Windows and on AzurePHP on Windows and on Azure
PHP on Windows and on Azure
 
Automating PowerShell with SharePoint
Automating PowerShell with SharePointAutomating PowerShell with SharePoint
Automating PowerShell with SharePoint
 
SPO Migration - New API
SPO Migration - New APISPO Migration - New API
SPO Migration - New API
 
My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
SPSBE18: New era of customizing site provisioning
SPSBE18: New era of customizing site provisioningSPSBE18: New era of customizing site provisioning
SPSBE18: New era of customizing site provisioning
 
New era of customizing site provisioning
New era of customizing site provisioningNew era of customizing site provisioning
New era of customizing site provisioning
 

Recently uploaded

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 

Recently uploaded (20)

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

SPugPt Meeting 35: Manage govern and drive adoption of share point online with powershell and csom

  • 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
  • 5. Introduction Governance and Adoption – [current] Landscape
  • 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
  • 7. Common Tasks available through SPO Powershell
  • 9. The power of PowerShell with SPO in action
  • 10. PowerShell Cmdlets On Prem vs Online SharePoint 2013 on Prem SharePoint Online 774 30 900 800 700 600 500 400 300 200 100 0 Cmdlets
  • 11. PowerShell + CSOM: How does it work? # User Info $username = "joolive@spugpt33.onmicrosoft.com" $password = "pass@word1" $url = "https://spugpt33.sharepoint.com/" $securePassword = ConvertTo-SecureString $Password -AsPlainText -Force # Core Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.dll" -EA 0 Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Runtime.dll" -EA 0 # Additional libs Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Taxonomy.dll" -EA 0 Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.DocumentManagement.dll" - EA 0 Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Publishing.dll" -EA 0 Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Search.dll" -EA 0 Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.UserProfiles.dll" -EA 0 Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.WorkflowServices.dll" -EA 0 # Authenticate to SharePoint Online $clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($url) $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $securePassword) $clientContext.Credentials = $credentials if (!$clientContext.ServerObjectIsNull.Value) { Write-Host "Connected to SharePoint Online site: '$Url'" -ForegroundColor Green }
  • 12. How to activate a Hidden Feature? # this is the side-loading Feature ID..
  • 13. Demo
  • 15. Demo
  • 16. Govern SPO DEV! (wait, … what?)
  • 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.
  • 19. Demo