Download presentation
Presentation is loading. Please wait.
Published byIrmak Sözen Modified over 5 years ago
1
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud
Marrell Sanders – Sr. SharePoint Administrator SharePoint Saturday Atlanta, GA | May 11, 2019
2
Who Am I Marrell Sanders, MCTS Senior AppDev Administrator / Dev Ops
Contact Blog: Who Am I
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
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 accurately predicted the collapse of the “old ways” of the SharePoint Administrators. “The Old Admin Ways Must End”
6
a long time ago, they asked the question
a long time ago, they asked the question. “Who can run a SharePoint farm better than us?” -M Windu Dir of Product Teams
7
The team answered in unity “Nobody, were the originals. Lets form up.”
8
And so they do.
9
AWW SNAP!!!
10
Business Productivity Online Standard Suite (BPOS)
11
Sort of, but not really, but kinda.
Learn a new skill Time to become a Developer….. Sort of, but not really, but kinda.
12
What is PowerShell? #POSH #PowerShell
PowerShell is an object-oriented programming language and interactive command line shell for Microsoft Windows. #POSH #PowerShell
13
Oh Wait… I can’t logon to an o365 tenant server
14
Oh Wait… I can’t logon to an o365 tenant server
Use the Force Oh Wait… I can’t logon to an o365 tenant server
15
Oh Wait… I can’t logon to an o365 tenant server
Use the Force Oh Wait… I can’t logon to an o365 tenant server
16
Oh Well What do you want me to do?
17
SPO Service Connect-PNP And a bunch of others
What tools do we have? SPO Service Connect-PNP And a bunch of others
18
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.
19
PnP VS SPO? PnP PowerShell Cmdlets contains additional parameters to each command, which is used to achieve more tasks when compared to equivalent SPO command. PnP PowerShell Cmdlets managed by Patterns and Practices team and it gets updated every month. Where as SPO cmdlets are windows PowerShell module to manage the SharePoint Online and this also get frequent updates. PnP PowerShell Cmdlets works in the context of the current user, where as SPO command runs with the Tenant Admin rights. PnP PowerShell Cmdlets connects to the Site Collection level, where as SPO has the commands to target Tenant level.
20
Context Switching Connect-PnPOnline -Url $siteAurl -Credentials $credentials $ctx = Get-PnPContext Get-PnPList # returns the lists from site specified with $siteAurl Connect-PnPOnline -Url $siteBurl -Credentials $credentials Get-PnPList # returns the lists from the site specified with $siteBurl Set-PnPContext -Context $ctx # switch back to site A Get-PnPList # returns the lists from site A
21
Demos:
22
I don’t want to have to type my username and password every time I run a script.
23
Windows Credential Manager
Great Blog Post on Petri By Shane Young
24
Windows Credential Manager
Great Blog Post on Petri By Shane Young
25
PowerShell Cheat Sheet
26
Office 365 Site Designer Tool
27
Shameless Plug for Vlad
28
Resource Links
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.