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

Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Último (20)

Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 

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