SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Nik Charlebois
• Software Engineer
• 8 years experience with SharePoint
• MCTS SharePoint 2013 & HTML5
• Full time public servant
• .NET Developer
• Chair of the SPOutaouais User Group
• Blog: NikCharlebois.com
• @NikCharlebois
Author
« Beginning PowerShell for SharePoint 2013 »
• Bridge the gap between IT Pros & Developers;
• Understand the internals mechanisms of PowerShell;
• Demonstrate how to use PowerShell on-premises & in the cloud;
• Give an overview of what the future has in store;
• Minimum level of exposure with PowerShell;
• Minimum level of exposure with the SharePoint’s Object Model;
vNext
STSAdm.exe
• Limited tool to manage SharePoint;
• Possibility to create command line scripts using it;
• Often very slow to execute
• Considered to be an IT Pro solution
• Exclusive adminsitrative solution for SharePoint 2003
Console Application (.exe)
• Used the SharePoint Object Model to do administrative tasks;
• Requires a compiled solution (Visual Studio);
• Black box not allowing administrators to read its logic;
• Considered to be a developer solution;
PowerShell
• New in 2009 (SharePoint 2010 not released yet);
• Allows for hybrid solutions between the two previous alternatives;
• Still perceived as a developer’s solution;
• Need to know the SharePoint Object Model;
SharePoint Management Shell
• SharePoint 2010 introduces shortcut methods called cmdlets to
manage SharePoint;
• Ex: Get-SPWeb, Remove-SPSolution, etc.
• Very performant option compared to the previous ones;
• Considered to be a general public solution (IT);
• Language’s appearance in all Microsoft products;
2007
$site = New-Object Microsoft.SharePoint.SPSite("http://intranet")
$web = $site.RootWeb
2010
$web = Get-SPWeb http://localhost
• Introduces about 100 new cmdlets (compared to 2010).
• Most are related to the new search architecture;
• Now the official tool to manage SharePoint;
• Comes preinstalled since Windows Server 2008 R2;
• Used to manage Office 365;
• Integrated in most Microsoft products
• PowerShell is based on the .NET platform;
• Allows you to interact with objects;
• Ex: Get-SPWeb returns an SPWeb object with whom we can interact;
• Allows us to use custom dynamic libraries (custom DLLs);
Demo #1
Reservation System
• PowerShell has access to all .NET libraries;
• Possibility to use libraries handling the graphical interface
elements and others;
Demo #2
Graphical Interfaces
18
• PowerShell allows us to interact with all SharePoint object types
(just like the Object Model);
• PowerShell offers predefined cmdlets for SharePoint all the way
down to the web level;
• Starting at the lists level, we go back to the 2007 way of doing it;
 http://localhost
 http://localhost
 http://localhost


Demo #3
Obtain all lists in a web
• Microsoft made available the « SharePoint Online Management
Shell »
• Connects remotely to an Office 365 SharePoint Online instance;
• Includes it own set of cmdlets;
• Office 365 offers a H-U-G-E 30 PowerShell cmdlets;
• Offers and extremely limited set of possible operations;
• We simply add an ‘o’ in the name of each object in the cmdlets;
• Ex: Get-SPOSite, Set-SPOSite, etc.
Demo #4
Rename a site on Office 365
using PowerShell
• Since SharePoint 2010, there is a Client-Side Object Model
(CSOM);
• This model comes in 3 flavours:
• JavaScript
• .NET
• Silverlight
• Since PowerShell leverages the .NET framework…
• Then 1 + 1 =…
• Requires you to load the following moldes in your PowerShell
session:
• Microsoft.SharePoint.Client
• Microsoft.SharePoint.Client.Runtime
Demo #5
Create a SharePoint public web
On Office 365
using Powershell
27
• Requires coding (Visual Studio);
• Requires you to add references to the following modules:
• System.Management
• System.Management.Automation
• Allows us to define custom verb-noun combinations;
• Each cmdlet is its own class;
Demo #6
Create custom Powershell
cmdlet
29
PowerShell Web Access
• New functionnality with
Windows Server 2012;
• Allows us to work in a remote
PowerShell session through
the browser;
• New with PowerShell v4 (Windows Server 2012
R2);
• Offers a mechanism to push constant
configurations between different machines or
servers;
• Specifies via a script how a machine needs to be
configured (roles, services, etc.).
• Extensions to existing cmdlets:
• Get-SPList, Move-SPList, Clear-SPBlobCache, etc.
• Free & frequently updated
SPPoSh.Codeplex.com
• Youtube Channel with free PowerShell training
videos;
Using PowerShell for SharePoint 2013

Weitere ähnliche Inhalte

Was ist angesagt?

[Nuxeo World 2013] Roadmap 2014 - Technical Part
[Nuxeo World 2013] Roadmap 2014 - Technical Part [Nuxeo World 2013] Roadmap 2014 - Technical Part
[Nuxeo World 2013] Roadmap 2014 - Technical Part
Nuxeo
 

Was ist angesagt? (20)

Effective .NET Core Unit Testing with SQLite and Dapper
Effective .NET Core Unit Testing with SQLite and DapperEffective .NET Core Unit Testing with SQLite and Dapper
Effective .NET Core Unit Testing with SQLite and Dapper
 
Beyond Domino Designer
Beyond Domino DesignerBeyond Domino Designer
Beyond Domino Designer
 
Manage your infrastructure with PowerShell
Manage your infrastructure with PowerShellManage your infrastructure with PowerShell
Manage your infrastructure with PowerShell
 
Container Orchestration for .NET Developers
Container Orchestration for .NET DevelopersContainer Orchestration for .NET Developers
Container Orchestration for .NET Developers
 
Building a Google Cloud Firestore API with dotnet core
Building a Google Cloud Firestore API with dotnet coreBuilding a Google Cloud Firestore API with dotnet core
Building a Google Cloud Firestore API with dotnet core
 
Top 10 dev ops tools (1)
Top 10 dev ops tools (1)Top 10 dev ops tools (1)
Top 10 dev ops tools (1)
 
Blazor - the successor of angular/react/vue?
Blazor - the successor of angular/react/vue?Blazor - the successor of angular/react/vue?
Blazor - the successor of angular/react/vue?
 
It depends: Loving .NET Core dependency injection or not
It depends: Loving .NET Core dependency injection or notIt depends: Loving .NET Core dependency injection or not
It depends: Loving .NET Core dependency injection or not
 
ECS19 - Daniel Neumann - AZURE FUNCTIONS 2.0 - RUNNING SERVERLESS EVERYWHERE
ECS19 - Daniel Neumann - AZURE FUNCTIONS 2.0 - RUNNING SERVERLESS EVERYWHEREECS19 - Daniel Neumann - AZURE FUNCTIONS 2.0 - RUNNING SERVERLESS EVERYWHERE
ECS19 - Daniel Neumann - AZURE FUNCTIONS 2.0 - RUNNING SERVERLESS EVERYWHERE
 
Introduction To Windows Workflow Foundation 4.0
Introduction To Windows Workflow Foundation 4.0Introduction To Windows Workflow Foundation 4.0
Introduction To Windows Workflow Foundation 4.0
 
Part 2 of the REAL Webinars on Oracle Cloud Native Application Development (J...
Part 2 of the REAL Webinars on Oracle Cloud Native Application Development (J...Part 2 of the REAL Webinars on Oracle Cloud Native Application Development (J...
Part 2 of the REAL Webinars on Oracle Cloud Native Application Development (J...
 
In
InIn
In
 
Introducing .NET Core Open Source
Introducing .NET Core Open SourceIntroducing .NET Core Open Source
Introducing .NET Core Open Source
 
Telosys project booster Paris Open Source Summit 2019
Telosys project booster Paris Open Source Summit 2019Telosys project booster Paris Open Source Summit 2019
Telosys project booster Paris Open Source Summit 2019
 
[Nuxeo World 2013] Roadmap 2014 - Technical Part
[Nuxeo World 2013] Roadmap 2014 - Technical Part [Nuxeo World 2013] Roadmap 2014 - Technical Part
[Nuxeo World 2013] Roadmap 2014 - Technical Part
 
Alex Thissen "It depends: loving .NET Core dependency injection or not"
Alex Thissen "It depends: loving .NET Core dependency injection or not"Alex Thissen "It depends: loving .NET Core dependency injection or not"
Alex Thissen "It depends: loving .NET Core dependency injection or not"
 
CI CD Daridabad MuleSoft meetup
CI CD Daridabad MuleSoft meetupCI CD Daridabad MuleSoft meetup
CI CD Daridabad MuleSoft meetup
 
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
 
Continuous delivery
Continuous deliveryContinuous delivery
Continuous delivery
 
PP_Eric_Gandt
PP_Eric_GandtPP_Eric_Gandt
PP_Eric_Gandt
 

Andere mochten auch (9)

Sp summit2014 session 8-2
Sp summit2014   session 8-2Sp summit2014   session 8-2
Sp summit2014 session 8-2
 
Sp summit2014 session 10-2
Sp summit2014   session 10-2Sp summit2014   session 10-2
Sp summit2014 session 10-2
 
Sp outaouais avril 2013 - survol sp 2013
Sp outaouais   avril 2013 - survol sp 2013Sp outaouais   avril 2013 - survol sp 2013
Sp outaouais avril 2013 - survol sp 2013
 
PowerShell mtl-dev 2015
PowerShell   mtl-dev 2015PowerShell   mtl-dev 2015
PowerShell mtl-dev 2015
 
Huawei Symantec Oceanspace VIS6000 Overview
Huawei Symantec Oceanspace VIS6000 OverviewHuawei Symantec Oceanspace VIS6000 Overview
Huawei Symantec Oceanspace VIS6000 Overview
 
Session 9.1 visio services
Session 9.1   visio servicesSession 9.1   visio services
Session 9.1 visio services
 
Intro visio services
Intro visio servicesIntro visio services
Intro visio services
 
Visio services 2013 share point saturday mtl
Visio services 2013   share point saturday mtlVisio services 2013   share point saturday mtl
Visio services 2013 share point saturday mtl
 
SharePoint saturday montreal 2016- automatisation powershell
SharePoint saturday montreal   2016- automatisation powershellSharePoint saturday montreal   2016- automatisation powershell
SharePoint saturday montreal 2016- automatisation powershell
 

Ähnlich wie Using PowerShell for SharePoint 2013

PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
Bryan Cafferky
 
PowerShell for the Anxious ITPro
PowerShell for the Anxious ITProPowerShell for the Anxious ITPro
PowerShell for the Anxious ITPro
Jason Himmelstein
 

Ähnlich wie Using PowerShell for SharePoint 2013 (20)

Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshopIntroduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
 
O365Con18 - Working with PowerShell, VS Code and GitHub - Thomas Vochten
O365Con18 - Working with PowerShell, VS Code and GitHub - Thomas VochtenO365Con18 - Working with PowerShell, VS Code and GitHub - Thomas Vochten
O365Con18 - Working with PowerShell, VS Code and GitHub - Thomas Vochten
 
Managing SharePoint Anywhere with Windows PowerShell
Managing SharePoint Anywhere with Windows PowerShellManaging SharePoint Anywhere with Windows PowerShell
Managing SharePoint Anywhere with Windows PowerShell
 
Working with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
Working with PowerShell, Visual Studio Code and Github for the reluctant IT ProWorking with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
Working with PowerShell, Visual Studio Code and Github for the reluctant IT Pro
 
PowerShell Introduction to Administering SharePoint On-Premises & O365
PowerShell Introduction to Administering SharePoint On-Premises & O365PowerShell Introduction to Administering SharePoint On-Premises & O365
PowerShell Introduction to Administering SharePoint On-Premises & O365
 
A Beginner's Guide to Client Side Development with Javascript
A Beginner's Guide to Client Side Development with JavascriptA Beginner's Guide to Client Side Development with Javascript
A Beginner's Guide to Client Side Development with Javascript
 
Share point 2010_day5
Share point 2010_day5Share point 2010_day5
Share point 2010_day5
 
Intro to SharePoint + PowerShell
Intro to SharePoint + PowerShellIntro to SharePoint + PowerShell
Intro to SharePoint + PowerShell
 
powershell.pdf
powershell.pdfpowershell.pdf
powershell.pdf
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
 
Mastering Office 365 with PowerShell - TechDays Finland 2020
Mastering Office 365 with PowerShell -  TechDays Finland 2020Mastering Office 365 with PowerShell -  TechDays Finland 2020
Mastering Office 365 with PowerShell - TechDays Finland 2020
 
Visual Studio Team Services Extensions by Taavi Kõosaar (@melborp)
Visual Studio Team Services Extensions by Taavi Kõosaar (@melborp)Visual Studio Team Services Extensions by Taavi Kõosaar (@melborp)
Visual Studio Team Services Extensions by Taavi Kõosaar (@melborp)
 
Top 10 python ide
Top 10 python ideTop 10 python ide
Top 10 python ide
 
#SPSOttawa 2017 migrate to the #SharePoint Framework #spfx
#SPSOttawa 2017 migrate to the #SharePoint Framework #spfx#SPSOttawa 2017 migrate to the #SharePoint Framework #spfx
#SPSOttawa 2017 migrate to the #SharePoint Framework #spfx
 
PowerShell for the Anxious ITPro
PowerShell for the Anxious ITProPowerShell for the Anxious ITPro
PowerShell for the Anxious ITPro
 
I5 - Bring yourself up to speed with power shell
I5 -  Bring yourself up to speed with power shellI5 -  Bring yourself up to speed with power shell
I5 - Bring yourself up to speed with power shell
 
Introducing PowerShell 3.0
Introducing PowerShell 3.0Introducing PowerShell 3.0
Introducing PowerShell 3.0
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShell
 
Release Management with Visual Studio Team Services and Office Dev PnP
Release Management with Visual Studio Team Services and Office Dev PnPRelease Management with Visual Studio Team Services and Office Dev PnP
Release Management with Visual Studio Team Services and Office Dev PnP
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Using PowerShell for SharePoint 2013

  • 1.
  • 2. Nik Charlebois • Software Engineer • 8 years experience with SharePoint • MCTS SharePoint 2013 & HTML5 • Full time public servant • .NET Developer • Chair of the SPOutaouais User Group • Blog: NikCharlebois.com • @NikCharlebois
  • 3. Author « Beginning PowerShell for SharePoint 2013 »
  • 4. • Bridge the gap between IT Pros & Developers; • Understand the internals mechanisms of PowerShell; • Demonstrate how to use PowerShell on-premises & in the cloud; • Give an overview of what the future has in store;
  • 5. • Minimum level of exposure with PowerShell; • Minimum level of exposure with the SharePoint’s Object Model;
  • 7.
  • 8. STSAdm.exe • Limited tool to manage SharePoint; • Possibility to create command line scripts using it; • Often very slow to execute • Considered to be an IT Pro solution • Exclusive adminsitrative solution for SharePoint 2003
  • 9. Console Application (.exe) • Used the SharePoint Object Model to do administrative tasks; • Requires a compiled solution (Visual Studio); • Black box not allowing administrators to read its logic; • Considered to be a developer solution;
  • 10. PowerShell • New in 2009 (SharePoint 2010 not released yet); • Allows for hybrid solutions between the two previous alternatives; • Still perceived as a developer’s solution; • Need to know the SharePoint Object Model;
  • 11. SharePoint Management Shell • SharePoint 2010 introduces shortcut methods called cmdlets to manage SharePoint; • Ex: Get-SPWeb, Remove-SPSolution, etc. • Very performant option compared to the previous ones; • Considered to be a general public solution (IT); • Language’s appearance in all Microsoft products;
  • 12. 2007 $site = New-Object Microsoft.SharePoint.SPSite("http://intranet") $web = $site.RootWeb 2010 $web = Get-SPWeb http://localhost
  • 13. • Introduces about 100 new cmdlets (compared to 2010). • Most are related to the new search architecture; • Now the official tool to manage SharePoint; • Comes preinstalled since Windows Server 2008 R2; • Used to manage Office 365; • Integrated in most Microsoft products
  • 14.
  • 15. • PowerShell is based on the .NET platform; • Allows you to interact with objects; • Ex: Get-SPWeb returns an SPWeb object with whom we can interact; • Allows us to use custom dynamic libraries (custom DLLs);
  • 17. • PowerShell has access to all .NET libraries; • Possibility to use libraries handling the graphical interface elements and others;
  • 19. • PowerShell allows us to interact with all SharePoint object types (just like the Object Model); • PowerShell offers predefined cmdlets for SharePoint all the way down to the web level; • Starting at the lists level, we go back to the 2007 way of doing it;
  • 21. Demo #3 Obtain all lists in a web
  • 22. • Microsoft made available the « SharePoint Online Management Shell » • Connects remotely to an Office 365 SharePoint Online instance; • Includes it own set of cmdlets;
  • 23. • Office 365 offers a H-U-G-E 30 PowerShell cmdlets; • Offers and extremely limited set of possible operations; • We simply add an ‘o’ in the name of each object in the cmdlets; • Ex: Get-SPOSite, Set-SPOSite, etc.
  • 24. Demo #4 Rename a site on Office 365 using PowerShell
  • 25. • Since SharePoint 2010, there is a Client-Side Object Model (CSOM); • This model comes in 3 flavours: • JavaScript • .NET • Silverlight • Since PowerShell leverages the .NET framework… • Then 1 + 1 =…
  • 26. • Requires you to load the following moldes in your PowerShell session: • Microsoft.SharePoint.Client • Microsoft.SharePoint.Client.Runtime
  • 27. Demo #5 Create a SharePoint public web On Office 365 using Powershell 27
  • 28. • Requires coding (Visual Studio); • Requires you to add references to the following modules: • System.Management • System.Management.Automation • Allows us to define custom verb-noun combinations; • Each cmdlet is its own class;
  • 29. Demo #6 Create custom Powershell cmdlet 29
  • 30.
  • 31. PowerShell Web Access • New functionnality with Windows Server 2012; • Allows us to work in a remote PowerShell session through the browser;
  • 32. • New with PowerShell v4 (Windows Server 2012 R2); • Offers a mechanism to push constant configurations between different machines or servers; • Specifies via a script how a machine needs to be configured (roles, services, etc.).
  • 33.
  • 34. • Extensions to existing cmdlets: • Get-SPList, Move-SPList, Clear-SPBlobCache, etc. • Free & frequently updated SPPoSh.Codeplex.com
  • 35. • Youtube Channel with free PowerShell training videos;