About Me
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
Session Raffle
http://blogs.architectingconnectedsystems.
com/blogs/cjg/default.aspx
Chis Givens - MVP
Twitter: @givenscj
Agenda
Background CSOM Overview
Why PowerShell + CSOM
Final Thoughts &
QA
How to Start
“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
Typical CT deployment process
What is being recommended
CSOM Overview
How CSOM Works
CSOM Overview
• 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
• Local Machine
• SharePoint 2013 Environment
Steps to start developing
• Located at C:Program FilesCommon
Filesmicrosoft sharedWeb Server
Extensions15ISAPI
• All DLLs that starts with
Microsoft.SharePoint.Client
Local Machine
SharePoint Environment
Add reference to your DLLs
Authentication - SPO
Authentication – On-Prem
*
Some Advantages
• Microsoft.SharePoint.Client
Summary
Sps boston 2014_o365_power_shell_csom_amitv

Sps boston 2014_o365_power_shell_csom_amitv