SlideShare a Scribd company logo
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:

More Related Content

PDF
Troubleshooting APEX Performance Issues
PPTX
PowerShell: Through the SharePoint Looking Glass
PDF
What's New in Jira Cloud for Developers
PDF
The User Who Must Not be Named: GDPR and Your Jira App
PDF
Adobe Experience Manager - 6th Edition by Cedric Huesler
PPTX
NZ Code Camp 2011 PowerShell + SharePoint
PPTX
Power Shell and Sharepoint 2013
PPTX
Site Provisioning with Modern SharePoint Sites and SIte Assets - O365 Saturda...
Troubleshooting APEX Performance Issues
PowerShell: Through the SharePoint Looking Glass
What's New in Jira Cloud for Developers
The User Who Must Not be Named: GDPR and Your Jira App
Adobe Experience Manager - 6th Edition by Cedric Huesler
NZ Code Camp 2011 PowerShell + SharePoint
Power Shell and Sharepoint 2013
Site Provisioning with Modern SharePoint Sites and SIte Assets - O365 Saturda...

Similar to Make the hosting company life easier with SharePoint PowerShell (20)

PDF
Operacion Guinda 2
PDF
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
PPTX
SharePoint Object Model, Web Services and Events
PPTX
Migrating to SharePoint 2013 - Business and Technical Perspective
PPTX
Admin share point with powershell
PDF
Powershell to the People #suguk
PPTX
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
PDF
Prediction io 架構與整合 -DataCon.TW-2017
ODP
Pyramid patterns
PPTX
Monitoring and Maintaining SharePoint 2013 Server
PPT
Sharepoint Online
PPTX
SharePoint Saturday Atlanta 2015
PPTX
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
PPTX
ServerTemplate Deep Dive
PPTX
Full Trust Solution Development in SharePoint 2013
PPT
Best practices for share point solution deployment
PPTX
SPO Migration - New API
PDF
Supercharging WordPress Development - Wordcamp Brighton 2019
Operacion Guinda 2
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Object Model, Web Services and Events
Migrating to SharePoint 2013 - Business and Technical Perspective
Admin share point with powershell
Powershell to the People #suguk
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Prediction io 架構與整合 -DataCon.TW-2017
Pyramid patterns
Monitoring and Maintaining SharePoint 2013 Server
Sharepoint Online
SharePoint Saturday Atlanta 2015
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
ServerTemplate Deep Dive
Full Trust Solution Development in SharePoint 2013
Best practices for share point solution deployment
SPO Migration - New API
Supercharging WordPress Development - Wordcamp Brighton 2019
Ad

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
20250228 LYD VKU AI Blended-Learning.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
Understanding_Digital_Forensics_Presentation.pptx
sap open course for s4hana steps from ECC to s4
NewMind AI Weekly Chronicles - August'25 Week I
Review of recent advances in non-invasive hemoglobin estimation
Network Security Unit 5.pdf for BCA BBA.
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
The AUB Centre for AI in Media Proposal.docx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Ad

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:

Editor's Notes

  • #6: Deployment only via ScriptsAutomating Infrastructure DeploymentIntegration with 3rd partiesContinuous Delivery and Development
  • #7: Automate deployments Solve : Error prone manual deployments , Unclear requirements
  • #13: 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:\\Scriptsguatda.com/cmx.p\\HelloWordScript.ps1”3. PowerShell –NoExit & ‘C:\\My Scriptsguatda.com/cmx.p\\Scripts.ps1’More info: http://technet.microsoft.com/en-us/library/bb978526.aspxSharePoint PowerShellTo add snapin to Powershell: Add-PsSnapin Microsoft.SharePoint.PowerShell