SlideShare a Scribd company logo
PowerShell + SharePoint Online
– An Admins Guide to
Administration in the O365 Cloud
Marrell Sanders – Sr. SharePoint Administrator
ShareCloud Summit Dallas, TX | May 2nd, 2018
Who Am I
Marrell Sanders, MCTS
 Senior SharePoint Administrator
Love’s Travel Stops and Country Stores
 MS Group IT
Contact
 Email: techrevmarrell@outlook.com
 Blog: www.techrevmarrell.com
 Twitter: @TechRevMarrell
Key Takeaways
 What’s new with PoSh for SPO
 How to manage sites, users, groups with O365 PowerShell
 Automate Business Scenarios with PowerShell
 Scheduling Tasks using Azure
 Security with Automated and Remote Scripting
 The Top Ten cmdlets SP Admins will use
SharePoint Admin Role
What happened to it?
Remember the good old days of SharePoint Administration?
MOSS 2007
SharePoint 2010 or 2013?
Huge Server Farms
Todd Klindt and Shane Young predicted the collapse of
the “old ways” of the SharePoint Administrators.
“The Old Admin Ways Must End”
Microsoft said a long time ago, ya know
who can run a SharePoint farm better
than us?
And so they do.
Business Productivity Online
Standard Suite (BPOS)
Learn a new skill
Time to become a Developer….. Sort
of, but not really, but kinda.
What is PowerShell?
 PowerShell is an object-oriented
programming language and
interactive command line shell for
Microsoft Windows.
 #POSH
 #PowerShell
Use the Force
Oh Wait…
I can’t logon to an o365 tenant server
Well Thanks for Coming!
Just Kidding There’s More!
What tools do we have?
Azure AD
SPO Service
MS Teams
What tools do we have?
Azure AD
install-module –Name AzureAD
SPO Service
Connect-SPOService –url https://tenant-admin.sharePoint.com
MS Teams
Connect-MicrosoftTeams –url https://tenant.sharePoint.com
Demo:
Connect to Environment using SPO Service Modules
Demo:
Get Site Collections
Create Site Collection
Set Properties for Site Collection
Demo:
Create Multiple Site Collections
Demo:
Get some User(s)
What is CSOM
Client Side Object Model
We need to include the Client Object Model Libraries into our Scripts.
https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM
Demo:
Create Subsites using CSOM
Demo:
Delete Subsite using CSOM
PowerShell + SharePoint Online - An Admin's Guide
PnP PowerShell
SharePoint Patterns and Practices (PnP) contains a
library of PowerShell commands (PnP PowerShell)
that allows you to perform complex provisioning and
artifact management actions towards SharePoint.
The commands use CSOM and can work against both
SharePoint Online as SharePoint On-Premises.
https://docs.microsoft.com/en-
us/powershell/sharepoint/sharepoint-
pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps
PnP PowerShell
Connect-PnPOnline –url -credentials (Get-Credential)
Get-Command -Module *PnP*
Get-PnPMasterPage
Set-PnPMasterPage
Check In File
Who’s a site collection admin on the site.
Demo:
Create a lot of folders in a list using PnP
My Top 10
1. Get-SPOSite
2. New-SPOSite
3. Remove-SPOSite
4. Get-allsubsites in Sitecollection
5. Get-AllSubsites and Site Collections
in Farm
6. Everything in sharePont PnP
7. Scheduled Task from Azure
8. Import into List
9. Create Multiple Site Collections
10. Restore-SPODeletedSite
http://techrevmarrell.com/SPOTop10

More Related Content

PDF
Moss 2007 High Availability
PDF
01_Migrate Web Sites to Azure Web Apps_GAB2019
PPTX
5 Important Points To Remember If You Want To Reduce AWS EC2 Cost
PPT
Getting started on AWS
PDF
03_Overview of Azure AI and How to Use It Today_GAB2019
PDF
Aws training & certification certicate of completion cpe
PDF
GWAVACon 2015: Identity Management with Azure
PDF
Aws training & certification certicate of completion
Moss 2007 High Availability
01_Migrate Web Sites to Azure Web Apps_GAB2019
5 Important Points To Remember If You Want To Reduce AWS EC2 Cost
Getting started on AWS
03_Overview of Azure AI and How to Use It Today_GAB2019
Aws training & certification certicate of completion cpe
GWAVACon 2015: Identity Management with Azure
Aws training & certification certicate of completion

Similar to PowerShell + SharePoint Online - An Admin's Guide (20)

PPTX
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
PDF
Mastering Office 365 with PowerShell - TechDays Finland 2020
PPTX
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
PDF
Gilles Pommier: Edit DevOps with PowerShell for Office 365 and SharePoint Onl...
PPTX
SPS Warsaw 2017
PDF
PowerShell Introduction to Administering SharePoint On-Premises & O365
PPTX
Webinar - Office 365 & PowerShell : A Match Made in Heaven
PPTX
How to do everything with PowerShell
PDF
O365Engage17 - Managing share point online end to-end with powershell
PPTX
PowerShell Basics for Office Apps and Servers
PPTX
I5 - Bring yourself up to speed with power shell
PPTX
PowerShell: Through the SharePoint Looking Glass
PDF
I6 - State of the art SharePoint PowerShell Nation 2017 - Spencer Harbar
PPTX
SPSSTL - PowerShell - Through the SharePoint Looking Glass
DOCX
Windows power shell for sharepoint online & office 365
PPTX
Office 365 & PowerShell - A match made in heaven
PDF
SPUnite17 The Accidental SPO Admin
PPTX
PowerShell for the Hybrid Admin
PPTX
Managing SharePoint Anywhere with Windows PowerShell
PPTX
NZ Code Camp 2011 PowerShell + SharePoint
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Mastering Office 365 with PowerShell - TechDays Finland 2020
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
Gilles Pommier: Edit DevOps with PowerShell for Office 365 and SharePoint Onl...
SPS Warsaw 2017
PowerShell Introduction to Administering SharePoint On-Premises & O365
Webinar - Office 365 & PowerShell : A Match Made in Heaven
How to do everything with PowerShell
O365Engage17 - Managing share point online end to-end with powershell
PowerShell Basics for Office Apps and Servers
I5 - Bring yourself up to speed with power shell
PowerShell: Through the SharePoint Looking Glass
I6 - State of the art SharePoint PowerShell Nation 2017 - Spencer Harbar
SPSSTL - PowerShell - Through the SharePoint Looking Glass
Windows power shell for sharepoint online & office 365
Office 365 & PowerShell - A match made in heaven
SPUnite17 The Accidental SPO Admin
PowerShell for the Hybrid Admin
Managing SharePoint Anywhere with Windows PowerShell
NZ Code Camp 2011 PowerShell + SharePoint
Ad

More from JoAnna Cheshire (20)

PDF
The Future of Work
PDF
Catching the Next Train
PPTX
The SharePoint Migration Playbook
PDF
Introduction to SharePoint Framework
PDF
Artificial Intelligence & Machine Learning - A CIOs Perspective
PDF
Modernizing Data Management
PPTX
Microsoft and Enterprise Search
PPTX
Introduction to Microsoft Teams and Office 365 groups
PDF
Cybersecurity crisis management a prep guide
PPTX
Accelerate your business with flow
PPTX
Building applications for your business using power apps and flow
PPTX
The Decomposition Dilemma
PPTX
Not "If" but "When"
PDF
Defending against Ransomware and what you can do about it
PDF
The New Convergence of Data; the Next Strategic Business Advantage
PDF
Healthcare - An Identity Thief's SuperStore
PDF
Microservices Architectural Maturity Matrix, Token Based Authority, API Gatew...
PPT
Define Yourself! Crafting a Wonder Woman's Brand
PDF
Today's Cyber Challenges: Methodology to Secure Your Business
PDF
A UX first approach to Office 365 migrations
The Future of Work
Catching the Next Train
The SharePoint Migration Playbook
Introduction to SharePoint Framework
Artificial Intelligence & Machine Learning - A CIOs Perspective
Modernizing Data Management
Microsoft and Enterprise Search
Introduction to Microsoft Teams and Office 365 groups
Cybersecurity crisis management a prep guide
Accelerate your business with flow
Building applications for your business using power apps and flow
The Decomposition Dilemma
Not "If" but "When"
Defending against Ransomware and what you can do about it
The New Convergence of Data; the Next Strategic Business Advantage
Healthcare - An Identity Thief's SuperStore
Microservices Architectural Maturity Matrix, Token Based Authority, API Gatew...
Define Yourself! Crafting a Wonder Woman's Brand
Today's Cyber Challenges: Methodology to Secure Your Business
A UX first approach to Office 365 migrations
Ad

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Modernizing your data center with Dell and AMD
PPT
Teaching material agriculture food technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
KodekX | Application Modernization Development
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
A Presentation on Artificial Intelligence
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
Modernizing your data center with Dell and AMD
Teaching material agriculture food technology
Empathic Computing: Creating Shared Understanding
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The AUB Centre for AI in Media Proposal.docx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
KodekX | Application Modernization Development
NewMind AI Monthly Chronicles - July 2025
A Presentation on Artificial Intelligence

PowerShell + SharePoint Online - An Admin's Guide

  • 1. PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator ShareCloud Summit Dallas, TX | May 2nd, 2018
  • 2. Who Am I Marrell Sanders, MCTS  Senior SharePoint Administrator Love’s Travel Stops and Country Stores  MS Group IT Contact  Email: techrevmarrell@outlook.com  Blog: www.techrevmarrell.com  Twitter: @TechRevMarrell
  • 3. Key Takeaways  What’s new with PoSh for SPO  How to manage sites, users, groups with O365 PowerShell  Automate Business Scenarios with PowerShell  Scheduling Tasks using Azure  Security with Automated and Remote Scripting  The Top Ten cmdlets SP Admins will use
  • 4. SharePoint Admin Role What happened to it? Remember the good old days of SharePoint Administration? MOSS 2007 SharePoint 2010 or 2013? Huge Server Farms
  • 5. Todd Klindt and Shane Young predicted the collapse of the “old ways” of the SharePoint Administrators. “The Old Admin Ways Must End”
  • 6. Microsoft said a long time ago, ya know who can run a SharePoint farm better than us?
  • 9. Learn a new skill Time to become a Developer….. Sort of, but not really, but kinda.
  • 10. What is PowerShell?  PowerShell is an object-oriented programming language and interactive command line shell for Microsoft Windows.  #POSH  #PowerShell
  • 11. Use the Force Oh Wait… I can’t logon to an o365 tenant server
  • 12. Well Thanks for Coming! Just Kidding There’s More!
  • 13. What tools do we have? Azure AD SPO Service MS Teams
  • 14. What tools do we have? Azure AD install-module –Name AzureAD SPO Service Connect-SPOService –url https://tenant-admin.sharePoint.com MS Teams Connect-MicrosoftTeams –url https://tenant.sharePoint.com
  • 15. Demo: Connect to Environment using SPO Service Modules
  • 16. Demo: Get Site Collections Create Site Collection Set Properties for Site Collection
  • 19. What is CSOM Client Side Object Model We need to include the Client Object Model Libraries into our Scripts. https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM
  • 23. PnP PowerShell SharePoint Patterns and Practices (PnP) contains a library of PowerShell commands (PnP PowerShell) that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use CSOM and can work against both SharePoint Online as SharePoint On-Premises. https://docs.microsoft.com/en- us/powershell/sharepoint/sharepoint- pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps
  • 24. PnP PowerShell Connect-PnPOnline –url -credentials (Get-Credential) Get-Command -Module *PnP* Get-PnPMasterPage Set-PnPMasterPage Check In File Who’s a site collection admin on the site.
  • 25. Demo: Create a lot of folders in a list using PnP
  • 26. My Top 10 1. Get-SPOSite 2. New-SPOSite 3. Remove-SPOSite 4. Get-allsubsites in Sitecollection 5. Get-AllSubsites and Site Collections in Farm 6. Everything in sharePont PnP 7. Scheduled Task from Azure 8. Import into List 9. Create Multiple Site Collections 10. Restore-SPODeletedSite http://techrevmarrell.com/SPOTop10