SlideShare a Scribd company logo
1 of 10
 Who am I?
Sr. SharePoint Architect
15+ years in the IT industry
10+ years in SharePoint
Bhakthi.liyanage@baml.com
@bhakthil
https://www.linkedin.com/pub/bhakthi-liyanage/14/15/912
https://github.com/bhakthil
 What is Windows PowerShell?
Windows PowerShell is an interactive, object-oriented command-line
scripting environment that utilizes small programs called cmdlets.
Advantages:
 Interactive – type a simple command and retrieve lot of information
 Simple and logical operations –
eg. Get-Process retrieves all the process running
 Scripting capability – collection of PowerShell commands in a file
portable and can be shared
scripting tasks can be scheduled
 .Net framework application – honors the current user privileges
 Why PowerShell for SharePoint in the first place?
 Complements STSADM commands
 Provides more capabilities than UI
 Automation of Farm/Site Collection/Site administration via scripting
Eg. Automating solution deployment, site provisioning and
user provisioning. Etc.
 2 main flavors of SharePoint PowerShell
 SharePoint 2013 Management Shell – Used to manage on premise
installations
 Very powerful (Index of Windows PowerShell cmdlets for SharePoint 2013)
 700+ cmdlets
 SharePoint Online Management Shell – Used to manage SharePoint
Online site administration
 Very limited capabilities
 30+ cmdlets (Index of Windows PowerShell for SharePoint Online cmdlets
 What is CSOM?
 Client Side Object Model (CSOM) provides the capability of leveraging
SharePoint features out side of SharePoint farm server environment.
 SharePoint 2013 has four client object models for managed code: .NET,
Silverlight, JavaScript and mobile.
 The SharePoint 2013 object model for .NET Framework is used in .NET
Framework applications that run on a non-phone Windows client. Any
of the following counts as such a client:
• A user's computer
• A server that is external to the SharePoint 2013 farm
• A web role or worker role on Microsoft Azure
 Why CSOM with PowerShell?
 Scalable – functionality can be added as separate PS files
 Faster – faster execution, faster development, faster deployment
 Portable
 Low resource consumption – less memory
 Simple
 What is the down side?
 Learning curve of CSOM, slightly different from traditional SharePoint
programming model
 Confirm Windows Management Framework version
 Download and Install the latest WMF
(http://www.microsoft.com/en-us/download/details.aspx?id=40855)
 Enable scripting
Get-ExecutionPolicy – retrieves the current policy
Set-ExecutionPolicy Unrestricted
 Install SharePoint client SDK (http://www.microsoft.com/en-
us/download/details.aspx?id=35585)
Should be at least 3.0
 The code sample can be found at
https://github.com/bhakthil/SPS
Demo

More Related Content

Viewers also liked

SharePoint Saturday - Giving your SharePoint site a new lick of paint
SharePoint Saturday - Giving your SharePoint site a new lick of paintSharePoint Saturday - Giving your SharePoint site a new lick of paint
SharePoint Saturday - Giving your SharePoint site a new lick of paintSam Dolan
 
The hype of office 365(3)
The hype of office 365(3)The hype of office 365(3)
The hype of office 365(3)Emilee Barnes
 
Why Use Add ins with SharePoint and SharePoint Online? Webinar
Why Use Add ins with SharePoint and SharePoint Online? WebinarWhy Use Add ins with SharePoint and SharePoint Online? Webinar
Why Use Add ins with SharePoint and SharePoint Online? WebinarConcept Searching, Inc
 
Windows Azure Bootcamp - Microsoft BI in Azure VMs
Windows Azure Bootcamp - Microsoft BI in Azure VMsWindows Azure Bootcamp - Microsoft BI in Azure VMs
Windows Azure Bootcamp - Microsoft BI in Azure VMsIvan Donev
 
Introduction to cloud computing and microsoft online services
Introduction to cloud computing and microsoft online servicesIntroduction to cloud computing and microsoft online services
Introduction to cloud computing and microsoft online servicescanada1001
 
Adopting SharePoint online or on premise - sps toronto
Adopting SharePoint online or on premise - sps torontoAdopting SharePoint online or on premise - sps toronto
Adopting SharePoint online or on premise - sps torontoBaris Bruce Tuncertan
 
How to build your own weather station using IoT and Azure cloud
How to build your own weather station using IoT and Azure cloudHow to build your own weather station using IoT and Azure cloud
How to build your own weather station using IoT and Azure cloudBhakthi Liyanage
 
Integration of SharePoint and SAP Extended ECM
Integration of SharePoint and SAP Extended ECMIntegration of SharePoint and SAP Extended ECM
Integration of SharePoint and SAP Extended ECMThomas Demmler
 
Collab 365 building business solutions on Office 365 and SharePoint Online
Collab 365 building business solutions on Office 365 and SharePoint OnlineCollab 365 building business solutions on Office 365 and SharePoint Online
Collab 365 building business solutions on Office 365 and SharePoint OnlineDarrell Trimble
 
SharePoint Online (Office 365) vs. SharePoint Server
SharePoint Online (Office 365) vs. SharePoint ServerSharePoint Online (Office 365) vs. SharePoint Server
SharePoint Online (Office 365) vs. SharePoint ServerBHolt_IT
 

Viewers also liked (12)

SharePoint Saturday - Giving your SharePoint site a new lick of paint
SharePoint Saturday - Giving your SharePoint site a new lick of paintSharePoint Saturday - Giving your SharePoint site a new lick of paint
SharePoint Saturday - Giving your SharePoint site a new lick of paint
 
The hype of office 365(3)
The hype of office 365(3)The hype of office 365(3)
The hype of office 365(3)
 
Why Use Add ins with SharePoint and SharePoint Online? Webinar
Why Use Add ins with SharePoint and SharePoint Online? WebinarWhy Use Add ins with SharePoint and SharePoint Online? Webinar
Why Use Add ins with SharePoint and SharePoint Online? Webinar
 
Windows Azure Bootcamp - Microsoft BI in Azure VMs
Windows Azure Bootcamp - Microsoft BI in Azure VMsWindows Azure Bootcamp - Microsoft BI in Azure VMs
Windows Azure Bootcamp - Microsoft BI in Azure VMs
 
Understanding SharePoint Online
Understanding SharePoint Online Understanding SharePoint Online
Understanding SharePoint Online
 
Introduction to cloud computing and microsoft online services
Introduction to cloud computing and microsoft online servicesIntroduction to cloud computing and microsoft online services
Introduction to cloud computing and microsoft online services
 
Adopting SharePoint online or on premise - sps toronto
Adopting SharePoint online or on premise - sps torontoAdopting SharePoint online or on premise - sps toronto
Adopting SharePoint online or on premise - sps toronto
 
How to build your own weather station using IoT and Azure cloud
How to build your own weather station using IoT and Azure cloudHow to build your own weather station using IoT and Azure cloud
How to build your own weather station using IoT and Azure cloud
 
Integration of SharePoint and SAP Extended ECM
Integration of SharePoint and SAP Extended ECMIntegration of SharePoint and SAP Extended ECM
Integration of SharePoint and SAP Extended ECM
 
What Makes A Good Intranet
What Makes A Good IntranetWhat Makes A Good Intranet
What Makes A Good Intranet
 
Collab 365 building business solutions on Office 365 and SharePoint Online
Collab 365 building business solutions on Office 365 and SharePoint OnlineCollab 365 building business solutions on Office 365 and SharePoint Online
Collab 365 building business solutions on Office 365 and SharePoint Online
 
SharePoint Online (Office 365) vs. SharePoint Server
SharePoint Online (Office 365) vs. SharePoint ServerSharePoint Online (Office 365) vs. SharePoint Server
SharePoint Online (Office 365) vs. SharePoint Server
 

Recently uploaded

Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfkalichargn70th171
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingShane Coughlan
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesVictoriaMetrics
 
Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024Anthony Dahanne
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxRTS corp
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsJean Silva
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...OnePlan Solutions
 

Recently uploaded (20)

Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 Updates
 
Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero results
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
 

SharePoint Online Administration and Automation with CSOM and PowerShell

  • 1.
  • 2.  Who am I? Sr. SharePoint Architect 15+ years in the IT industry 10+ years in SharePoint Bhakthi.liyanage@baml.com @bhakthil https://www.linkedin.com/pub/bhakthi-liyanage/14/15/912 https://github.com/bhakthil
  • 3.  What is Windows PowerShell? Windows PowerShell is an interactive, object-oriented command-line scripting environment that utilizes small programs called cmdlets. Advantages:  Interactive – type a simple command and retrieve lot of information  Simple and logical operations – eg. Get-Process retrieves all the process running  Scripting capability – collection of PowerShell commands in a file portable and can be shared scripting tasks can be scheduled  .Net framework application – honors the current user privileges
  • 4.  Why PowerShell for SharePoint in the first place?  Complements STSADM commands  Provides more capabilities than UI  Automation of Farm/Site Collection/Site administration via scripting Eg. Automating solution deployment, site provisioning and user provisioning. Etc.  2 main flavors of SharePoint PowerShell  SharePoint 2013 Management Shell – Used to manage on premise installations  Very powerful (Index of Windows PowerShell cmdlets for SharePoint 2013)  700+ cmdlets  SharePoint Online Management Shell – Used to manage SharePoint Online site administration  Very limited capabilities  30+ cmdlets (Index of Windows PowerShell for SharePoint Online cmdlets
  • 5.  What is CSOM?  Client Side Object Model (CSOM) provides the capability of leveraging SharePoint features out side of SharePoint farm server environment.  SharePoint 2013 has four client object models for managed code: .NET, Silverlight, JavaScript and mobile.  The SharePoint 2013 object model for .NET Framework is used in .NET Framework applications that run on a non-phone Windows client. Any of the following counts as such a client: • A user's computer • A server that is external to the SharePoint 2013 farm • A web role or worker role on Microsoft Azure
  • 6.
  • 7.  Why CSOM with PowerShell?  Scalable – functionality can be added as separate PS files  Faster – faster execution, faster development, faster deployment  Portable  Low resource consumption – less memory  Simple  What is the down side?  Learning curve of CSOM, slightly different from traditional SharePoint programming model
  • 8.  Confirm Windows Management Framework version  Download and Install the latest WMF (http://www.microsoft.com/en-us/download/details.aspx?id=40855)  Enable scripting Get-ExecutionPolicy – retrieves the current policy Set-ExecutionPolicy Unrestricted  Install SharePoint client SDK (http://www.microsoft.com/en- us/download/details.aspx?id=35585) Should be at least 3.0
  • 9.  The code sample can be found at https://github.com/bhakthil/SPS
  • 10. Demo