Your SlideShare is downloading. ×
Make the hosting company life easier with SharePoint PowerShell
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Make the hosting company life easier with SharePoint PowerShell


Published on

SharePoint Saturday was organized on Saturday, June 22 2013 at Sofia, Bulgaria. It is an educational, informative & lively day filled with sessions from respected SharePoint professionals & MVPs, …

SharePoint Saturday was organized on Saturday, June 22 2013 at Sofia, Bulgaria. It is an educational, informative & lively day filled with sessions from respected SharePoint professionals & MVPs, covering a wide variety of SharePoint-orientated topics. Over 200 SharePoint architects, developers, and other professionals that work with Microsoft SharePoint technologies joined the conference.

Virtual Affairs was sponsor of the event and colleague Natalia Pavlova, Team lead Bulgaria, gave two presentations:
1) SharePoint report server ‘Develop a SharePoint Dashboard with Report Server’
2) SharePoint 2010 PowerShell ‘Make the hosting company life easier with SharePoint PowerShell’

Published in: Technology, Design

  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide
  • Deployment only via ScriptsAutomating Infrastructure DeploymentIntegration with 3rd partiesContinuous Delivery and Development
  • Automate deployments Solve : Error prone manual deployments , Unclear requirements
  • 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: PowerShellTo add snapin to Powershell: Add-PsSnapin Microsoft.SharePoint.PowerShell
  • Transcript

    • 1. Make the hosting company lifeeasier with SharePoint andPowerShellNatalia Pavlova
    • 2. About me Natalia Pavlova Team Lead @ SharePoint fan from version 2003
    • 3. Agenda Why and How to make the hosting companylife easier for SharePoint projects? SharePoint PowerShell
    • 4. Support SharePoint environment when youdon’t have access? Add newFunctionality UpdateFunctionality Integrate with3rd 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 PowerShells Scripts settings
    • 11. SharePoint Solution Package
    • 12. SharePoint PowerShell Introduction PowerShell Format: [verb]-[noun] PowerShell Scripts Execution Introduction SharePoint PowerShell Add-PsSnapin Microsoft.SharePoint.PowerShell SharePoint PowerShell Scripts Execution
    • 13. SharePoint PowerShell
    • 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 SiteNew-SPSite "siteURL" –OwnerAlias "domaincompName" –Template$templateweb = New-SPWeb” siteURL”|$web.ApplyWebTemplate("{FeatureGUID}#MyTemplate")$site.GetWebTemplates(1033)| Format-Table -Property * -AutoSize Delete SiteRemove-SPSite -Identity $url
    • 19. SharePoint PowerShell – Site Management
    • 20. SharePoint PowerShell – Feature Management Getting the Feature listGet-SPFeature -Site http://Site/Get-SPSite http://SharePointSite/ | Get-SPWeb -Limit ALL | %{ Get-SPFeature -Web $_ } | Sort DisplayName -Unique | FT DisplayName,Id Deactivating the FeatureDisable-SPFeature –Identity FeatureNameHere –url http://SharePointSite/Disable-SPFeature –Identity FeatureIDHere –url http://SharePointSite/ Activating the FeatureEnable-SPFeature –Identity FeatureNameHere –url http://SharePointSite/Enable-SPFeature –Identity FeatureIDHere –url http://SharePointSite/
    • 21. SharePoint PowerShell – Feature Management Install FeatureInstall-SPFeature -Path “Feature_Path" –force UnInstall FeatureUninstall-SPFeature -Identity "GUID"
    • 22. SharePoint PowerShell – Feature Management
    • 23. Questions and Answers?
    • 24. SQLSaturday #199 in October! Saturday, October 26, 2013 For the second time in Bulgaria! Free 1-day training event by/for SQL Server & BIprofessionals More info and registration at:
    • 25. Thanks to our Sponsors:Diamond Sponsor:Platinum Sponsors:Gold Sponsor:Swag Sponsors:Media Partners:Silver Sponsor: