• Save
Make the hosting company life easier with SharePoint PowerShell
Upcoming SlideShare
Loading in...5
×
 

Make the hosting company life easier with SharePoint PowerShell

on

  • 469 views

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’

Statistics

Views

Total Views
469
Views on SlideShare
469
Embed Views
0

Actions

Likes
2
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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: http://technet.microsoft.com/en-us/library/bb978526.aspxSharePoint PowerShellTo add snapin to Powershell: Add-PsSnapin Microsoft.SharePoint.PowerShell

Make the hosting company life easier with SharePoint PowerShell Make the hosting company life easier with SharePoint PowerShell Presentation Transcript

  • Make the hosting company lifeeasier with SharePoint andPowerShellNatalia Pavlova
  • About me Natalia Pavlova Team Lead @ SharePoint fan from version 2003
  • Agenda Why and How to make the hosting companylife easier for SharePoint projects? SharePoint PowerShell
  • Support SharePoint environment when youdon’t have access? Add newFunctionality UpdateFunctionality Integrate with3rd 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 PowerShells 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 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
  • SharePoint PowerShell – Site Management
  • 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/
  • SharePoint PowerShell – Feature Management Install FeatureInstall-SPFeature -Path “Feature_Path" –force UnInstall FeatureUninstall-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 & BIprofessionals 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: