SlideShare uma empresa Scribd logo
1 de 25
Make the hosting company life
easier with SharePoint and
PowerShell
Natalia Pavlova
About me
 Natalia Pavlova
 Team Lead @
 SharePoint fan from version 2003
Agenda
 Why and How to make the hosting company
life easier for SharePoint projects?
 SharePoint PowerShell
Support SharePoint environment when you
don’t have access?
 Add new
Functionality
 Update
Functionality
 Integrate with
3rd parties
How : Automate Deployments
Automate deployments
 Solve
 Error prone manual deployments
 Unclear requirements
 Prevent Risks of
 Time consuming deployments
 High risk changes to production
 Human error
 Messy production systems
 Complicated roll-backs.
Deployment Good Practices
 Standardise where you can
 Make it simple
 Make it reusable
 Make it Self Aware
 Automating Infrastructure Deployment
 Treat configuration files as code
 Test your deployments – involve QA team
What to deliver to Hosting Company ?
 SharePoint packages
 solution packages
 Documentation
 Manual
 Release Notes
 Scripts for automated deployment
 SharePoint PowerShell Scripts
 Scripts for integration with 3rd parties
SharePoint Solution Packages
 What is a solution package?
 What to be in?
 Features
 Site definitions, Master Pages
 Application Pages, Custom Pages, layout pages
 Templates, Images
 Web Parts, User Controls
 Cascading style sheets ,JavaScript, JQuery
 Event Receivers, Workflow Activities, Workflow Assemblies
 Global Resources (.resx files) , XML,XLST and etc.
 Policies and assemblies.
Documentation
 Release Notes
 Released Items
 Open items
 Deployments by environment
 Installation Manuals
 PowerShell's Scripts settings
SharePoint Solution Package
SharePoint PowerShell
 Introduction PowerShell
 Format: [verb]-[noun]
 PowerShell Scripts Execution
 Introduction SharePoint PowerShell
 Add-PsSnapin Microsoft.SharePoint.PowerShell
 SharePoint PowerShell Scripts Execution
SharePoint PowerShell
SharePoint PowerShell
 Common actions
 Solution Deployments
 Create site collection
 Create Site
 Install/Activate/Deactivate Features
 Lists manipulations
 Set security settings
SharePoint PowerShell - Solution Management
 Deploy Solution
 Farm
 Add-SPSolution
 Install-SPSolution $SolutionName
 Get-SPSolution
 Uninstall-SPSolution
 Remove-SPSolution
 Update-SPSolution
 Sandbox
[Verb]-SPUserSolution
[Verb] : add, install, get, uninstall, remove, update
SharePoint PowerShell - Solution Management
SharePoint PowerShell - Site Management
 Get Site Template
 Get site template globally installed
$template =Get-SPWebTemplate "SharePointTemplate"
 Get site template available on the current web
$template =(Get-SPWebTemplate | Where { $_.Title –eq
$template } | Where { $_.LocaleId –eq "$lang"}).Name
$template =$web.GetAvailableTemplates(1033) | Where-
Object {$_.Name -eq "My Custom Template Name"}
$site= Get-SPSite "siteURL"
$site.GetWebTemplates(lcid)
SharePoint PowerShell - Site Management
 Create Site
New-SPSite "siteURL" –OwnerAlias "domaincompName" –Template
$template
web = New-SPWeb” siteURL”|
$web.ApplyWebTemplate("{FeatureGUID}#MyTemplate")
$site.GetWebTemplates(1033)| Format-Table -Property * -AutoSize
 Delete Site
Remove-SPSite -Identity $url
SharePoint PowerShell – Site Management
SharePoint PowerShell – Feature Management
 Getting the Feature list
Get-SPFeature -Site http://Site/
Get-SPSite http://SharePointSite/ | Get-SPWeb -Limit ALL | %{ Get-SPFeature -
Web $_ } | Sort DisplayName -Unique | FT DisplayName,Id
 Deactivating the Feature
Disable-SPFeature –Identity FeatureNameHere –url http://SharePointSite/
Disable-SPFeature –Identity FeatureIDHere –url http://SharePointSite/
 Activating the Feature
Enable-SPFeature –Identity FeatureNameHere –url http://SharePointSite/
Enable-SPFeature –Identity FeatureIDHere –url http://SharePointSite/
SharePoint PowerShell – Feature Management
 Install Feature
Install-SPFeature -Path “Feature_Path" –force
 UnInstall Feature
Uninstall-SPFeature -Identity "GUID"
SharePoint PowerShell – Feature Management
Questions and Answers?
SQLSaturday #199 in October!
 Saturday, October 26, 2013
 For the second time in Bulgaria!
 Free 1-day training event by/for SQL Server & BI
professionals
 More info and registration at:
 http://www.sqlsaturday.com/199/
Thanks to our Sponsors:
Diamond Sponsor:
Platinum Sponsors:
Gold Sponsor:
Swag Sponsors:
Media Partners:
Silver Sponsor:

Mais conteúdo relacionado

Semelhante a Make the hosting company life easier with SharePoint PowerShell

Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 

Semelhante a Make the hosting company life easier with SharePoint PowerShell (20)

Operacion Guinda 2
Operacion Guinda 2Operacion Guinda 2
Operacion Guinda 2
 
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy DewMake SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
 
Migrating to SharePoint 2013 - Business and Technical Perspective
Migrating to SharePoint 2013 - Business and Technical PerspectiveMigrating to SharePoint 2013 - Business and Technical Perspective
Migrating to SharePoint 2013 - Business and Technical Perspective
 
Admin share point with powershell
Admin share point with powershellAdmin share point with powershell
Admin share point with powershell
 
Powershell to the People #suguk
Powershell to the People #sugukPowershell to the People #suguk
Powershell to the People #suguk
 
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
 
Prediction io 架構與整合 -DataCon.TW-2017
Prediction io 架構與整合 -DataCon.TW-2017Prediction io 架構與整合 -DataCon.TW-2017
Prediction io 架構與整合 -DataCon.TW-2017
 
Pyramid patterns
Pyramid patternsPyramid patterns
Pyramid patterns
 
Monitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerMonitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 Server
 
Sharepoint Online
Sharepoint OnlineSharepoint Online
Sharepoint Online
 
SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015SharePoint Saturday Atlanta 2015
SharePoint Saturday Atlanta 2015
 
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
 
ServerTemplate Deep Dive
ServerTemplate Deep DiveServerTemplate Deep Dive
ServerTemplate Deep Dive
 
Full Trust Solution Development in SharePoint 2013
Full Trust Solution Development in SharePoint 2013Full Trust Solution Development in SharePoint 2013
Full Trust Solution Development in SharePoint 2013
 
Best practices for share point solution deployment
Best practices for share point solution deploymentBest practices for share point solution deployment
Best practices for share point solution deployment
 
SPO Migration - New API
SPO Migration - New APISPO Migration - New API
SPO Migration - New API
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019
 

Último

+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@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

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...
 
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...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+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...
 
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, ...
 
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
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Make the hosting company life easier with SharePoint PowerShell

  • 1. Make the hosting company life easier with SharePoint and PowerShell Natalia Pavlova
  • 2. About me  Natalia Pavlova  Team Lead @  SharePoint fan from version 2003
  • 3. Agenda  Why and How to make the hosting company life easier for SharePoint projects?  SharePoint PowerShell
  • 4. Support SharePoint environment when you don’t have access?  Add new Functionality  Update Functionality  Integrate with 3rd parties
  • 5. How : Automate Deployments
  • 6. Automate deployments  Solve  Error prone manual deployments  Unclear requirements  Prevent Risks of  Time consuming deployments  High risk changes to production  Human error  Messy production systems  Complicated roll-backs.
  • 7. Deployment Good Practices  Standardise where you can  Make it simple  Make it reusable  Make it Self Aware  Automating Infrastructure Deployment  Treat configuration files as code  Test your deployments – involve QA team
  • 8. What to deliver to Hosting Company ?  SharePoint packages  solution packages  Documentation  Manual  Release Notes  Scripts for automated deployment  SharePoint PowerShell Scripts  Scripts for integration with 3rd parties
  • 9. SharePoint Solution Packages  What is a solution package?  What to be in?  Features  Site definitions, Master Pages  Application Pages, Custom Pages, layout pages  Templates, Images  Web Parts, User Controls  Cascading style sheets ,JavaScript, JQuery  Event Receivers, Workflow Activities, Workflow Assemblies  Global Resources (.resx files) , XML,XLST and etc.  Policies and assemblies.
  • 10. Documentation  Release Notes  Released Items  Open items  Deployments by environment  Installation Manuals  PowerShell's Scripts settings
  • 12. SharePoint PowerShell  Introduction PowerShell  Format: [verb]-[noun]  PowerShell Scripts Execution  Introduction SharePoint PowerShell  Add-PsSnapin Microsoft.SharePoint.PowerShell  SharePoint PowerShell Scripts Execution
  • 14. SharePoint PowerShell  Common actions  Solution Deployments  Create site collection  Create Site  Install/Activate/Deactivate Features  Lists manipulations  Set security settings
  • 15. SharePoint PowerShell - Solution Management  Deploy Solution  Farm  Add-SPSolution  Install-SPSolution $SolutionName  Get-SPSolution  Uninstall-SPSolution  Remove-SPSolution  Update-SPSolution  Sandbox [Verb]-SPUserSolution [Verb] : add, install, get, uninstall, remove, update
  • 16. SharePoint PowerShell - Solution Management
  • 17. SharePoint PowerShell - Site Management  Get Site Template  Get site template globally installed $template =Get-SPWebTemplate "SharePointTemplate"  Get site template available on the current web $template =(Get-SPWebTemplate | Where { $_.Title –eq $template } | Where { $_.LocaleId –eq "$lang"}).Name $template =$web.GetAvailableTemplates(1033) | Where- Object {$_.Name -eq "My Custom Template Name"} $site= Get-SPSite "siteURL" $site.GetWebTemplates(lcid)
  • 18. SharePoint PowerShell - Site Management  Create Site New-SPSite "siteURL" –OwnerAlias "domaincompName" –Template $template web = New-SPWeb” siteURL”| $web.ApplyWebTemplate("{FeatureGUID}#MyTemplate") $site.GetWebTemplates(1033)| Format-Table -Property * -AutoSize  Delete Site Remove-SPSite -Identity $url
  • 19. SharePoint PowerShell – Site Management
  • 20. SharePoint PowerShell – Feature Management  Getting the Feature list Get-SPFeature -Site http://Site/ Get-SPSite http://SharePointSite/ | Get-SPWeb -Limit ALL | %{ Get-SPFeature - Web $_ } | Sort DisplayName -Unique | FT DisplayName,Id  Deactivating the Feature Disable-SPFeature –Identity FeatureNameHere –url http://SharePointSite/ Disable-SPFeature –Identity FeatureIDHere –url http://SharePointSite/  Activating the Feature Enable-SPFeature –Identity FeatureNameHere –url http://SharePointSite/ Enable-SPFeature –Identity FeatureIDHere –url http://SharePointSite/
  • 21. SharePoint PowerShell – Feature Management  Install Feature Install-SPFeature -Path “Feature_Path" –force  UnInstall Feature Uninstall-SPFeature -Identity "GUID"
  • 22. SharePoint PowerShell – Feature Management
  • 24. SQLSaturday #199 in October!  Saturday, October 26, 2013  For the second time in Bulgaria!  Free 1-day training event by/for SQL Server & BI professionals  More info and registration at:  http://www.sqlsaturday.com/199/
  • 25. Thanks to our Sponsors: Diamond Sponsor: Platinum Sponsors: Gold Sponsor: Swag Sponsors: Media Partners: Silver Sponsor:

Notas do Editor

  1. Deployment only via ScriptsAutomating Infrastructure DeploymentIntegration with 3rd partiesContinuous Delivery and Development
  2. Automate deployments Solve : Error prone manual deployments , Unclear requirements
  3. Windows PowerShell commands, called cmdlets, let you manage the computers in your enterprise from the command line. The real benefit of using Windows PowerShell cmdlets is the ability to use a script to automate a series of tasks. The default policy for Windows PowerShell is Restricted , to change the policy use Set-ExecutionPolicy . The minimum required execution policy for SharePoint 2010 Products is RemoteSigned.A script is a plain text file that contains one or more Windows PowerShell commands. Windows PowerShell scripts have a .ps1 file name extension. 1.Sample Get-Date ;Get-Help Get-Date2. & ScriptPath sample & “C:\\Scripts\\HelloWordScript.ps1”3. PowerShell –NoExit & ‘C:\\My Scripts\\Scripts.ps1’More info: http://technet.microsoft.com/en-us/library/bb978526.aspxSharePoint PowerShellTo add snapin to Powershell: Add-PsSnapin Microsoft.SharePoint.PowerShell