+ All Categories
Home > Documents > Online Conference June 17 th and 18 th 2015 SharePoint Online Administration with PowerShell.

Online Conference June 17 th and 18 th 2015 SharePoint Online Administration with PowerShell.

Date post: 05-Jan-2016
Category:
Upload: britton-long
View: 214 times
Download: 1 times
Share this document with a friend
Popular Tags:
45
Online Conference June 17 th and 18 th 2015 WWW.COLLAB365.EVENTS SharePoint Online Administration with PowerShell Brendan Griffin Microsoft
Transcript

Speakers Slide Deck PowerPoint

SharePoint Online Administration with PowerShellBrendan GriffinMicrosoftWWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Brendan GriffinMicrosoft

Email : [email protected] : @brendankarlBlog: http://aka.ms/fromthefield Principal Premier Field Engineer @ MicrosoftMicrosoft Certified Master SharePoint 2010SharePoint-er Since 2004!WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015AgendaSharePoint Online Management ShellOn-Premises vs. Online CmdletsUsing the Client Side Object Model (CSOM)Real World Examples!

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015The ChallengeSharePoint administrators rely heavily on PowerShellOffice 365 is a $1.5 billion a year business and growingWhat does the increased adoption of Office 365 mean for traditional SharePoint administrators?

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015The ChallengeDoes No Server Access == No PowerShell?Are we back in the dark ages of GUI based administration?

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 20155The SolutionOf course not A number of PowerShell Cmdlets are available for SharePoint Online!Download the SharePoint Online Management Shell to get started here

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015SharePoint Online Management ShellSo, Ive installed it what next?Lets take a closer look:

Focused on Site Collection and User administration tasks

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015SharePoint Online Management ShellIncludes 41 Cmdlets, which is slightly less than On-Premises!

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015O365 vs. On Premises Cmdlets

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015

SharePoint Online vs. On Premises CmdletsI will only need to make minor changes to my scripts Brendan Griffin (2013)Wrong!!! Cmdlets arent functionally equivalentHave different Methods and PropertiesIn some cases behave differently

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015SharePoint Online vs. On Premises CmdletsExample:Get-SPSite returns all Site CollectionsGet-SPOSite returns all Site Collections except My SitesIn some cases limitations can be addressed using a different approach more on this laterLets take a look at some of the Cmdlets in action

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015SPOL Management Shell Getting StartedImport the Microsoft.Online.SharePoint.PowerShell ModuleUse Connect-SPOService to connect to the Tenant

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201513

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201514

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201515Get-SPOSite SummaryUse the Detailed parameter with Get-SPOSite if you need the following properties returned:LockIssueWebsCountCompatibilityLevelAllowSelfServiceUpgradeResourceUsageCurrentResourceUsageAverageStorageUsageCurrentFurther documentation hereWWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Example: What Sites Do I Have?Inventory all Site Collections and output results to a CSV file using Get-SPOSite

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Example: Who Has Access?List the SharePoint Groups that each user is a member of within a Site Collection using Get-SPOUser

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Example: Configuring External AccessConfigure the External Sharing Capability for a specific Site CollectionUse Set-SPOSite with the SharingCapability parameter, options:DisabledExternalUserAndGuestSharingExternalUserSharingOnly

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201519Example: Auditing External AccessWho has access? Where do they have access? Who invited them?

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Site Level AdministrationSet-SPOSite can be used to:Change Site Owner

Configure the Storage and Resource Quota

Change the Title

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Site Level AdministrationSet-SPOSite can also be used to:Lock a Site

Requests for locked Sites can be redirected to a specific URL

Redirect URL is configurable using Set-SPOTenant -NoAccessRedirectURL

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Tenant Level SettingsGet/Set-SPOTenant can be used to retrieve and update Tenant level settingsSometimes the only option!

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015How Does this All Work?Get-SPOSite Under the CoversConnects to the client.svc WCF service and sends a request as XML

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015Under the Covers: Get-SPOSiteResponse is returned as JSON:

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015But, What about x?SharePoint Online Management Shell is great for basic Site Collection and User administrationButI can do x On-Premises, it doesnt appear to be possible to do this using the SharePoint Online Management Shell?I need to do something with Managed Metadata, User Profiles and Search, why isnt there a Cmdlet?WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 2015CSOM to the Rescue!The Client Side Object Model was introduced in SharePoint 2010 and is available in SharePoint OnlineProvides a subset of the Server Object Model - can be executed remotely using JavaScript or .NET (PowerShell in this case)

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201527Getting Started with CSOMDownload the SharePoint Online Client Components SDK hereIncludes the DLLs required for CSOM Fire up PowerShell and away we go

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201528

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201529CSOM What Went Wrong?CSOM is different to the Server Side Object ModelTo minimize data transfer a slightly different approach is usedRequests are bundled together and then sent to the server for executionOnly when an object has been returned, can it be used

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201530

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201531CSOM: 4 Steps to Success!Create VariableLoad into the ContextExecute the QueryUse the Variable

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201532Demo: Using CSOM to Create a Sub-Site

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201533

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201534But what about Service Applications???CSOM can also be used with Managed Metadata, Search and User ProfilesThe relevant assemblies need to be referencedMicrosoft.SharePoint.Client.Taxonomy.dll (Managed Metadata)Microsoft.SharePoint.Client.Search.dll (Search)Microsoft.SharePoint.Client.UserProfiles.dll (User Profiles)

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201535Example: Exporting all User Profiles

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201536Example: Exporting all User Profiles

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201537Example: Adding Terms to the Term Store

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201538Example: Adding Terms to the Term Store

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201539Example: Adding Terms to the Term Store

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201540Next StepsNeed to do something else?Refer to the Microsoft.SharePoint.Client namespace documentation on MSDNThe possibilities are endless (kind of!)

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201541Next StepsOffice 365 Patterns and Practices (PnP) includes a HUGE number of additional PowerShell Cmdlets, examples include: Add/Remove a Content TypeSet a Master PageDisable/Enable a FeatureAdd a Web Partthe list goes on!My Blog has a number of sample scripts too http://aka.ms/fromthefield

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201542Next StepsSharePoint 2013 Client Browser is a great tool to determine the data that can be obtained using CSOM.

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201543and Finally!Question Time

WWW.COLLAB365.EVENTSOnline ConferenceJune 17th and 18th 201544WWW.COLLAB365.EVENTSStay tuned for more great sessions Online ConferenceJune 17th and 18th 2015


Recommended