Sps boston 2014_o365_power_shell_csom_amitv

512 views
381 views

Published on

How to extend SharePoint Online PowerShell automation using Client Side Object Model for SharePoint 2013. This approach also works for On-prem SharePoint 2013.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
512
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sps boston 2014_o365_power_shell_csom_amitv

  1. 1. About Me
  2. 2. Credit for this session http://www.sharepointnutsandbolts.com/ Chis O’Brien - MVP Reference: http://www.sharepointnutsandbolts.com/20 13/12/Using-CSOM-in-PowerShell-scripts- with-Office365.html
  3. 3. Session Raffle http://blogs.architectingconnectedsystems. com/blogs/cjg/default.aspx Chis Givens - MVP Twitter: @givenscj
  4. 4. Agenda Background CSOM Overview Why PowerShell + CSOM Final Thoughts & QA How to Start
  5. 5. “FTC to CAM – Stop creating content types and site columns declaratively” http://blogs.msdn.com/b/vesku/archive/2013/11/06/ftc-to-cam-stop-creating-content- types-and-site-columns-declaratively.aspx My Journey to PowerShell + CSOM
  6. 6. Typical CT deployment process
  7. 7. What is being recommended
  8. 8. CSOM Overview
  9. 9. How CSOM Works
  10. 10. CSOM Overview
  11. 11. • Create Context ClientContext ctx = new ClientContext("http://intranet.contoso.com"); • Call Load and ExecuteQuery Before Accessing Value Properties Web web = ctx.Web; ctx.Load(web); ctx.ExecuteQuery(); Console.WriteLine(web.Title); How CSOM Works
  12. 12. • Local Machine • SharePoint 2013 Environment Steps to start developing
  13. 13. • Located at C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15ISAPI • All DLLs that starts with Microsoft.SharePoint.Client Local Machine
  14. 14. SharePoint Environment
  15. 15. Add reference to your DLLs
  16. 16. Authentication - SPO
  17. 17. Authentication – On-Prem
  18. 18. * Some Advantages
  19. 19. • Microsoft.SharePoint.Client Summary

×