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

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

Date post:22-Nov-2014
Category:
View:122 times
Download:2 times
Share this document with a friend
Description:
Manage govern and drive adoption of share point online with powershell and csom
Transcript:
  • 1. 13/09/2014

2. Manage, govern and driveadoption of SharePoint Onlinewith PowerShell and CSOM 3. Who we are?Joo [email protected] Premier Field EngineerNuno Oliveira [email protected] Premier Field Engineer 4. Agenda 5. Introduction Governance and Adoption [current] Landscape 6. Powershell Flavors to manage SP OnlineFlavor Notes Examples When installed youll have:SharePoint Online(SPO) cmdletsThese are SharePoint Online specific,and can be identified by SPO in thenoun part of the cmdlet.Get-SPOSite (to list your site collectionsin Office 365)New-SPOSite (to create a new sitecollection)MS Online(MSOL)/WAADcmdletsThese are commands related to anOffice 365 tenancy (but notnecessarily specific to Exchange, Lyncor SharePoint) and can be identifiedby Msol in the noun part of thecmdlet.Get-MSolUser (to list users in yourtenancy)Set-MsolUserPassword (to update apassword)Using SP CSOMin PS scriptsThe main focus of this Session. Activating a Feature in SharePointOnlineUpdating webs or lists in SharePointOnlineNo install needed you can run this type of scripts in aregular Windows PowerShell command prompt.NOTE: It requires having the .NET Client Object Modelinstalled.Using ExchangeOnlinePowerShellIf you are building a script thatresponds to trends in usage patternsGet-SPOSkyDriveProDeployedReportGet-SPOSkyDriveProStorageReportNo install needed you can run this type of scripts in aregular Windows PowerShell command promptRemote PowerShell Session 7. Common Tasks available through SPO Powershell 8. Demo 9. The power of PowerShell with SPO in action 10. PowerShell CmdletsOn Prem vs OnlineSharePoint 2013 on Prem SharePoint Online774309008007006005004003002001000Cmdlets 11. PowerShell + CSOM: How does it work?# User Info$username = "[email protected]"$password = "[email protected]"$url = "https://spugpt33.sharepoint.com/"$securePassword = ConvertTo-SecureString $Password -AsPlainText -Force# CoreAdd-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.dll" -EA 0Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Runtime.dll" -EA 0# Additional libsAdd-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Taxonomy.dll" -EA 0Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.DocumentManagement.dll" -EA 0Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Publishing.dll" -EA 0Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.Search.dll" -EA 0Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.UserProfiles.dll" -EA 0Add-Type -Path "c:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPIMicrosoft.SharePoint.Client.WorkflowServices.dll" -EA0# Authenticate to SharePoint Online$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($url)$credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $securePassword)$clientContext.Credentials = $credentialsif (!$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 14. Office 365 Reporting Cmdlets 15. Demo 16. Govern SPO DEV! (wait, what?) 17. Office 365 Development Patterns & Practiceshttps://github.com/OfficeDev/PnPhttps://www.yammer.com/itpronetwork 18. Package Folder StructureAll referenced assemblies are includedin package.Contains latest 15 and 16 CSOMcomponents when package wasreleased.No need for additional downloads.Reusable remote operationcomponent with extension methods tostandard CSOM objects.Reusable components targeted forreuse as such in projects.Sample projects. Independent samplesdemonstrating a capability orfunctionality.Complex reusable solutionsdemonstrating combining multiplecapabilities for building real solution.Uses core component.Scenario demonstrations for the usageof the core component. Containsadditional explanations and usagemodels for API patterns. 19. Demo 20. Questions?

Popular Tags:

Click here to load reader

Reader Image
Embed Size (px)
Recommended