SlideShare a Scribd company logo
Managing SharePoint Anywhere with 
Windows PowerShell 
Ryan Dennis
Ryan Dennis 
Senior SharePoint Consultant at Blue Chip Consulting Group 
Recently published first book as a co-author 
SP Geek Father 
www.bluechip-llc.com Drummer Husband 
ryan.dennis@bluechip-llc.com 
@SharePointRyan 
/in/SharePointRyan 
Dog Lover Author 
/SharePointRyanDotCom 
www.sharepointryan.com 
http://bit.ly/MMS13book
Archie the Corgi
Ask Our Experts! 
• Visit the Blue Chip booth to 
chat with one of our Expert 
Consultants 
• Drop us your business card, 
and we’ll help you solve your 
business problem and you 
might win an XBOX One** 
• Our resident SharePoint 
MCM/MVP is here all day, 
Monday & Tuesday* 
• Visit our other sessions in 
the SharePoint & PowerShell 
tracks! 
*Except when presenting 
**Drawing Tuesday. 
Blue Chip Featured Expert 
Paul Stork 
@PStork 
Paul is a Microsoft 
SharePoint MVP and 
MCM who works as 
Principal Architect at Blue Chip 
Consulting Group. An author and/or 
contributor on several SharePoint books, 
Paul is a well-known contributor to the 
SharePoint community.
Get-Agenda 
• Housekeeping 
• Intro to Advanced Functions 
• SharePoint PowerShell On-Premise 
• SharePoint PowerShell in Office 365 
• Using Client Side Object Model (CSOM) 
code in PowerShell 
• Q&A
Get-Help –Topic “PowerShell” 
…is a task-based command-line shell and 
scripting language designed especially for 
Windows system administration 
…has a task-based scripting language 
…includes powerful object manipulation 
capabilities 
…is built on the .NET Framework
Verb-Noun 
PowerShell uses a Verb-Noun syntax for its 
Cmdlets 
• Get-Something 
• Set-Something 
• New-Something 
• Remove-Something 
Quick Tip! 
Use Get-Verb to find 
approved verbs! Use 
Verb-Noun in your code!
Get-Command & Get-Help 
• Use Get-Command to see available 
commands 
Get-Command –Module 
Microsoft.SharePoint.PowerShell 
Get-Command –Module 
Microsoft.Online.SharePoint.PowerShell 
• Use Get-Help <CmdletName> to get 
help information for a cmdlet 
Quick Tip! 
Add Help to your 
scripts and 
functions!
Get-Command –Type “SharePoint” 
• SharePoint 2010 
– 500+ Cmdlets… 
– MUCH better than STSADM.exe in prior versions… 
– Can automate complete installations and 
configurations… 
• SharePoint 2013 
– 700+ Cmdlets! 
• Still doesn’t answer every scenario, leaving 
gaps in functionality… 
– Example: Get, New and Remove SharePoint Groups – no cmdlet, easy to write a 
custom function though… 
Opportunity! 
Write our own scripts 
and functions!
Get-Help About_Functions_Advanced 
…allow you to perform operations that are 
similar to the operations you can perform 
with cmdlets 
…quickly write a function without having to 
write a compiled cmdlet using a Microsoft 
.NET Framework language (C#) 
…use the CmdletBinding() attribute to 
identify them as functions that act similar to 
cmdlets 
Quick Tip! 
Use Get-Help 
About_Functions_Advanced 
for more info!
New-Function –Name “Our First Function” 
• Leverages all of the Write-* cmdlets in the 
Microsoft.PowerShell.Utility module 
• Includes Switch statement, ValidateSet, 
Try/Catch/Finally, etc. 
• Includes comment-based-help with 
examples 
• Can be run just like a cmdlet 
Disclaimer! 
This is NOT a SharePoint 
demo, just a general 
PowerShell demo!
D E M O 
Write-Message
Get-Recap 
• Reviewed Write-Message function… 
• Created output using all Write* types 
• Saw the behavior of –Verbose and –Debug 
switches 
• Had some fun…
Get-Info “SP PowerShell On-Premises” 
• Uses the Microsoft.SharePoint.PowerShell 
snap-in 
• Access to hundreds* of native cmdlets 
• Script using Server Side Object Model 
Code 
• Run as default (administrative) user 
• Must have server access 
*782 cmdlets on my 
SP 2013 April 2014 
CU farm.
Get-Info “SP PowerShell O365” 
• Uses the 
Microsoft.Online.SharePoint.PowerShell 
module 
• Access to thirty* (30) native cmdlets 
• Script using Client Side Object Model 
Code 
• Provide user credentials for ClientContext 
• No need for server access 
*30 cmdlets as of 
9/19/2014.
Get-Started -with “SP Online Scripting” 
• Download the SharePoint Online 
Management Shell 
• Use Connect-SPOService to connect to 
your Tenant SharePoint Administration 
Site 
• Use Get-Command –Module 
Microsoft.Online.SharePoint.PowerShell to 
see the available cmdlets
Get-Intro –Topic “SharePoint CSOM” 
• Add the following Assemblies 
– Microsoft.SharePoint.Client.dll 
– Microsoft.SharePoint.Client.Runtime.dll 
• Create a ClientContext variable 
• Call the Load() and ExecuteQuery() 
methods 
• Once context is created, get and set 
properties… For help on writing 
CSOM, see 
http://bit.ly/MsdnCsom
D E M O 
SharePoint Online
Get-Recap 
• Loaded assemblies using: 
Import-SPOAssemblies 
• Created context using 
New-SPOServiceContext 
• Created a new Site using 
New-SPOWeb 
• Retrieved Web using 
Get-SPOWeb 
• Set Properties with 
Set-SPOWebProperties 
Important! 
All of these 
functions/commands 
are a part of our 
custom PowerShell 
Module! Not OOTB.
Get-Info –Type “Bonus” 
• All of this works on-premises as well… 
– Just need to create ClientContext() differently 
• Use the System.Net.NetworkCredential object instead of 
Microsoft.SharePoint.Client.SharePointOnlineCredentials 
• It is security trimmed, if you don’t have SP 
permissions to do this – you can’t… 
• CSOM != SSOM 
– You do not have access to all of the same 
methods and properties…
Q U E S T I O N S ?
Ryan Dennis 
Senior SharePoint Consultant at Blue Chip Consulting Group 
Recently published first book as a co-author 
SP Geek Father 
www.bluechip-llc.com 
Drummer Husband ryan.dennis@bluechip-llc.com 
@SharePointRyan 
/in/SharePointRyan 
Dog Lover Author 
/SharePointRyanDotCom 
www.sharepointryan.com 
http://bit.ly/MMS13book

More Related Content

What's hot (20)

PPTX
Localizing SharePoint: Adding Multi-language Support to Your Site
Greg Hurlman
 
PPTX
SharePoint Development 101
Greg Hurlman
 
PPTX
Custom Applications - What, When, and Why
Greg Hurlman
 
PDF
Automate yourself out of a job - Use ChatOps!
Jaap Brasser
 
PPTX
Why & How to Create a WordPress Plugin
Joe Querin
 
PPTX
Untangling - fall2017 - week 9
Derek Jacoby
 
PDF
Engage 2019: Modernising Your Domino and XPages Applications
Paul Withers
 
PDF
Michael North "Ember.js 2 - Future-friendly ambitious apps, that scale!"
Fwdays
 
PPTX
SenchaCon 2016: Being Productive with the New Sencha Fiddle - Mitchell Simoens
Sencha
 
PPTX
Dev traning 2016 symfony
Sacheen Dhanjie
 
PPTX
The future of web development write once, run everywhere with angular.js and ...
Mark Roden
 
PDF
Selenium testing
Jason Myers
 
PDF
Hello world - intro to node js
Refresh Annapolis Valley
 
PDF
This is presentation at Mitaka.rb #10.
Masaki Komagata
 
PDF
Azure web functions little bites of services
Aaron Petry
 
PPTX
Untangling - fall2017 - week 7
Derek Jacoby
 
PPTX
Catch 22: FLex APps
Yash Mody
 
PDF
Adobe AEM for Business Heads
Yash Mody
 
PPTX
Олександр Хотемський “ProtractorJS як інструмент браузерної автоматизації для...
Dakiry
 
PDF
One Neos CMS - many websites
punkt.de GmbH
 
Localizing SharePoint: Adding Multi-language Support to Your Site
Greg Hurlman
 
SharePoint Development 101
Greg Hurlman
 
Custom Applications - What, When, and Why
Greg Hurlman
 
Automate yourself out of a job - Use ChatOps!
Jaap Brasser
 
Why & How to Create a WordPress Plugin
Joe Querin
 
Untangling - fall2017 - week 9
Derek Jacoby
 
Engage 2019: Modernising Your Domino and XPages Applications
Paul Withers
 
Michael North "Ember.js 2 - Future-friendly ambitious apps, that scale!"
Fwdays
 
SenchaCon 2016: Being Productive with the New Sencha Fiddle - Mitchell Simoens
Sencha
 
Dev traning 2016 symfony
Sacheen Dhanjie
 
The future of web development write once, run everywhere with angular.js and ...
Mark Roden
 
Selenium testing
Jason Myers
 
Hello world - intro to node js
Refresh Annapolis Valley
 
This is presentation at Mitaka.rb #10.
Masaki Komagata
 
Azure web functions little bites of services
Aaron Petry
 
Untangling - fall2017 - week 7
Derek Jacoby
 
Catch 22: FLex APps
Yash Mody
 
Adobe AEM for Business Heads
Yash Mody
 
Олександр Хотемський “ProtractorJS як інструмент браузерної автоматизації для...
Dakiry
 
One Neos CMS - many websites
punkt.de GmbH
 

Viewers also liked (14)

PDF
Presentatie Dominiek Callewier
Bedrijvenpark Kortrijk-Noord vzw
 
PDF
SPS Cincinnati slidedeck (pdf)
Ryan Dennis
 
PPTX
SPS Cincinnati slidedeck
Ryan Dennis
 
PPS
Werken R8 Agentschap Wegen en Verkeer
Bedrijvenpark Kortrijk-Noord vzw
 
PPTX
Intro to SharePoint + PowerShell
Ryan Dennis
 
PPTX
Leave the Fileshare, and join the Enterprise Content Revolution!
Ryan Dennis
 
PPTX
Leave The Fileshare and join the Enterprise Content Revolution!
Ryan Dennis
 
PPTX
Herding CATS: Gaining user adoption with these 4 principles
Ryan Dennis
 
PPTX
Funnel your Info down a new Path
Ryan Dennis
 
PPTX
Leave the fileshare, and join the enterprise content revolution!
Ryan Dennis
 
PPTX
20120606 Studenten Howest Brugge Strategie BPKN
Bedrijvenpark Kortrijk-Noord vzw
 
PPTX
20121115 hulpverleningszone fluvia
Bedrijvenpark Kortrijk-Noord vzw
 
PPTX
Groepsaankoop energie &rsquo;groot&rsquo; verbruik
Bedrijvenpark Kortrijk-Noord vzw
 
PPTX
Hoe gaan we te werk bij groepsaankoop energie?
Bedrijvenpark Kortrijk-Noord vzw
 
Presentatie Dominiek Callewier
Bedrijvenpark Kortrijk-Noord vzw
 
SPS Cincinnati slidedeck (pdf)
Ryan Dennis
 
SPS Cincinnati slidedeck
Ryan Dennis
 
Werken R8 Agentschap Wegen en Verkeer
Bedrijvenpark Kortrijk-Noord vzw
 
Intro to SharePoint + PowerShell
Ryan Dennis
 
Leave the Fileshare, and join the Enterprise Content Revolution!
Ryan Dennis
 
Leave The Fileshare and join the Enterprise Content Revolution!
Ryan Dennis
 
Herding CATS: Gaining user adoption with these 4 principles
Ryan Dennis
 
Funnel your Info down a new Path
Ryan Dennis
 
Leave the fileshare, and join the enterprise content revolution!
Ryan Dennis
 
20120606 Studenten Howest Brugge Strategie BPKN
Bedrijvenpark Kortrijk-Noord vzw
 
20121115 hulpverleningszone fluvia
Bedrijvenpark Kortrijk-Noord vzw
 
Groepsaankoop energie &rsquo;groot&rsquo; verbruik
Bedrijvenpark Kortrijk-Noord vzw
 
Hoe gaan we te werk bij groepsaankoop energie?
Bedrijvenpark Kortrijk-Noord vzw
 
Ad

Similar to Managing SharePoint Anywhere with Windows PowerShell (20)

PPTX
SPSSTL - PowerShell - Through the SharePoint Looking Glass
Brian Caauwe
 
PPTX
PowerShell: Through the SharePoint Looking Glass
Brian Caauwe
 
PPTX
SPSTC - PowerShell - Through the SharePoint Looking Glass
Brian Caauwe
 
PPTX
Introduction to PowerShell for SharePoint - SharePointFest 2014 workshop
Michael Blumenthal (Microsoft MVP)
 
PPTX
Intro to PowerShell
Adam Preston
 
PPTX
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Michael Blumenthal (Microsoft MVP)
 
PPTX
How to do everything with PowerShell
Juan Carlos Gonzalez
 
PPTX
Using PowerShell for SharePoint 2013
Nikolas Charlebois-Laprade
 
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
PPTX
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Michael Blumenthal (Microsoft MVP)
 
PPTX
PowerShell Basics for Office Apps and Servers
Greg McMurray
 
PPTX
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Comunidade Portuguesa de SharePoiint
 
PPTX
Power shell for sp admins
Rick Taylor
 
PPTX
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
Sébastien Levert
 
PPTX
Introduction to windows power shell in sharepoint 2010
Binh Nguyen
 
PPTX
PowerShell for SharePoint Admins
Rick Taylor
 
PPTX
Webinar - Office 365 & PowerShell : A Match Made in Heaven
Sébastien Levert
 
PPTX
Power Shell and Sharepoint 2013
Mohan Arumugam
 
PDF
Basic powershell scripts
MOHD TAHIR
 
SPSSTL - PowerShell - Through the SharePoint Looking Glass
Brian Caauwe
 
PowerShell: Through the SharePoint Looking Glass
Brian Caauwe
 
SPSTC - PowerShell - Through the SharePoint Looking Glass
Brian Caauwe
 
Introduction to PowerShell for SharePoint - SharePointFest 2014 workshop
Michael Blumenthal (Microsoft MVP)
 
Intro to PowerShell
Adam Preston
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Michael Blumenthal (Microsoft MVP)
 
How to do everything with PowerShell
Juan Carlos Gonzalez
 
Using PowerShell for SharePoint 2013
Nikolas Charlebois-Laprade
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Michael Blumenthal (Microsoft MVP)
 
PowerShell Basics for Office Apps and Servers
Greg McMurray
 
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Comunidade Portuguesa de SharePoiint
 
Power shell for sp admins
Rick Taylor
 
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
Sébastien Levert
 
Introduction to windows power shell in sharepoint 2010
Binh Nguyen
 
PowerShell for SharePoint Admins
Rick Taylor
 
Webinar - Office 365 & PowerShell : A Match Made in Heaven
Sébastien Levert
 
Power Shell and Sharepoint 2013
Mohan Arumugam
 
Basic powershell scripts
MOHD TAHIR
 
Ad

More from Ryan Dennis (8)

PPTX
Don't be afraid of moving infrastructure into Azure!
Ryan Dennis
 
PPTX
SPSCBUS Slides Scarlet InfoPath
Ryan Dennis
 
PPTX
Spsatx slides (widescreen)
Ryan Dennis
 
PPTX
Dogfood slides 2012
Ryan Dennis
 
PPTX
ScarePoint Saturday Spookinnati Slides
Ryan Dennis
 
PPTX
DAYSPUG - Funnel your info down a new path
Ryan Dennis
 
PPTX
Build your SharePoint Internet Presence with PowerShell
Ryan Dennis
 
PPTX
SPS Dayton Slides
Ryan Dennis
 
Don't be afraid of moving infrastructure into Azure!
Ryan Dennis
 
SPSCBUS Slides Scarlet InfoPath
Ryan Dennis
 
Spsatx slides (widescreen)
Ryan Dennis
 
Dogfood slides 2012
Ryan Dennis
 
ScarePoint Saturday Spookinnati Slides
Ryan Dennis
 
DAYSPUG - Funnel your info down a new path
Ryan Dennis
 
Build your SharePoint Internet Presence with PowerShell
Ryan Dennis
 
SPS Dayton Slides
Ryan Dennis
 

Recently uploaded (20)

PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PDF
“A Re-imagination of Embedded Vision System Design,” a Presentation from Imag...
Edge AI and Vision Alliance
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
Practical Applications of AI in Local Government
OnBoard
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
“A Re-imagination of Embedded Vision System Design,” a Presentation from Imag...
Edge AI and Vision Alliance
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 

Managing SharePoint Anywhere with Windows PowerShell

  • 1. Managing SharePoint Anywhere with Windows PowerShell Ryan Dennis
  • 2. Ryan Dennis Senior SharePoint Consultant at Blue Chip Consulting Group Recently published first book as a co-author SP Geek Father www.bluechip-llc.com Drummer Husband [email protected] @SharePointRyan /in/SharePointRyan Dog Lover Author /SharePointRyanDotCom www.sharepointryan.com http://bit.ly/MMS13book
  • 4. Ask Our Experts! • Visit the Blue Chip booth to chat with one of our Expert Consultants • Drop us your business card, and we’ll help you solve your business problem and you might win an XBOX One** • Our resident SharePoint MCM/MVP is here all day, Monday & Tuesday* • Visit our other sessions in the SharePoint & PowerShell tracks! *Except when presenting **Drawing Tuesday. Blue Chip Featured Expert Paul Stork @PStork Paul is a Microsoft SharePoint MVP and MCM who works as Principal Architect at Blue Chip Consulting Group. An author and/or contributor on several SharePoint books, Paul is a well-known contributor to the SharePoint community.
  • 5. Get-Agenda • Housekeeping • Intro to Advanced Functions • SharePoint PowerShell On-Premise • SharePoint PowerShell in Office 365 • Using Client Side Object Model (CSOM) code in PowerShell • Q&A
  • 6. Get-Help –Topic “PowerShell” …is a task-based command-line shell and scripting language designed especially for Windows system administration …has a task-based scripting language …includes powerful object manipulation capabilities …is built on the .NET Framework
  • 7. Verb-Noun PowerShell uses a Verb-Noun syntax for its Cmdlets • Get-Something • Set-Something • New-Something • Remove-Something Quick Tip! Use Get-Verb to find approved verbs! Use Verb-Noun in your code!
  • 8. Get-Command & Get-Help • Use Get-Command to see available commands Get-Command –Module Microsoft.SharePoint.PowerShell Get-Command –Module Microsoft.Online.SharePoint.PowerShell • Use Get-Help <CmdletName> to get help information for a cmdlet Quick Tip! Add Help to your scripts and functions!
  • 9. Get-Command –Type “SharePoint” • SharePoint 2010 – 500+ Cmdlets… – MUCH better than STSADM.exe in prior versions… – Can automate complete installations and configurations… • SharePoint 2013 – 700+ Cmdlets! • Still doesn’t answer every scenario, leaving gaps in functionality… – Example: Get, New and Remove SharePoint Groups – no cmdlet, easy to write a custom function though… Opportunity! Write our own scripts and functions!
  • 10. Get-Help About_Functions_Advanced …allow you to perform operations that are similar to the operations you can perform with cmdlets …quickly write a function without having to write a compiled cmdlet using a Microsoft .NET Framework language (C#) …use the CmdletBinding() attribute to identify them as functions that act similar to cmdlets Quick Tip! Use Get-Help About_Functions_Advanced for more info!
  • 11. New-Function –Name “Our First Function” • Leverages all of the Write-* cmdlets in the Microsoft.PowerShell.Utility module • Includes Switch statement, ValidateSet, Try/Catch/Finally, etc. • Includes comment-based-help with examples • Can be run just like a cmdlet Disclaimer! This is NOT a SharePoint demo, just a general PowerShell demo!
  • 12. D E M O Write-Message
  • 13. Get-Recap • Reviewed Write-Message function… • Created output using all Write* types • Saw the behavior of –Verbose and –Debug switches • Had some fun…
  • 14. Get-Info “SP PowerShell On-Premises” • Uses the Microsoft.SharePoint.PowerShell snap-in • Access to hundreds* of native cmdlets • Script using Server Side Object Model Code • Run as default (administrative) user • Must have server access *782 cmdlets on my SP 2013 April 2014 CU farm.
  • 15. Get-Info “SP PowerShell O365” • Uses the Microsoft.Online.SharePoint.PowerShell module • Access to thirty* (30) native cmdlets • Script using Client Side Object Model Code • Provide user credentials for ClientContext • No need for server access *30 cmdlets as of 9/19/2014.
  • 16. Get-Started -with “SP Online Scripting” • Download the SharePoint Online Management Shell • Use Connect-SPOService to connect to your Tenant SharePoint Administration Site • Use Get-Command –Module Microsoft.Online.SharePoint.PowerShell to see the available cmdlets
  • 17. Get-Intro –Topic “SharePoint CSOM” • Add the following Assemblies – Microsoft.SharePoint.Client.dll – Microsoft.SharePoint.Client.Runtime.dll • Create a ClientContext variable • Call the Load() and ExecuteQuery() methods • Once context is created, get and set properties… For help on writing CSOM, see http://bit.ly/MsdnCsom
  • 18. D E M O SharePoint Online
  • 19. Get-Recap • Loaded assemblies using: Import-SPOAssemblies • Created context using New-SPOServiceContext • Created a new Site using New-SPOWeb • Retrieved Web using Get-SPOWeb • Set Properties with Set-SPOWebProperties Important! All of these functions/commands are a part of our custom PowerShell Module! Not OOTB.
  • 20. Get-Info –Type “Bonus” • All of this works on-premises as well… – Just need to create ClientContext() differently • Use the System.Net.NetworkCredential object instead of Microsoft.SharePoint.Client.SharePointOnlineCredentials • It is security trimmed, if you don’t have SP permissions to do this – you can’t… • CSOM != SSOM – You do not have access to all of the same methods and properties…
  • 21. Q U E S T I O N S ?
  • 22. Ryan Dennis Senior SharePoint Consultant at Blue Chip Consulting Group Recently published first book as a co-author SP Geek Father www.bluechip-llc.com Drummer Husband [email protected] @SharePointRyan /in/SharePointRyan Dog Lover Author /SharePointRyanDotCom www.sharepointryan.com http://bit.ly/MMS13book

Editor's Notes

  • #13: Go to the BI Center Excel Services Visio Services
  • #19: Go to the BI Center Excel Services Visio Services
  • #22: -Show an existing discussion with multiple replies -Create a new discussion -