1 / 31

Automating SharePoint 2010 administration tasks with Power Shell

Automating SharePoint 2010 administration tasks with Power Shell. Toni Frankola SharePoint MVP, Croatia Toni.frankola@acceleratio.hr http://sharepointusecases.com @ToniFrankola. Materials. Book Blog : http://www.sharepointusecases.com. Contents. The problem. A SharePoint farm:.

brone
Download Presentation

Automating SharePoint 2010 administration tasks with Power Shell

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Automating SharePoint 2010 administration tasks with Power Shell Toni Frankola SharePoint MVP, Croatia Toni.frankola@acceleratio.hr http://sharepointusecases.com @ToniFrankola

  2. Materials • Book • Blog: • http://www.sharepointusecases.com

  3. Contents

  4. The problem • A SharePoint farm:

  5. The problem (2) – SharePoint structure • Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings • Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings, Setings • Farm • Web Applications • Site Collections • Sites • Lists • ... • Service Applications • Search • User profile • ...

  6. In 2007 • Stsadm • Automation

  7. stsadm • Limited • Not that many cmdlets available • Script language • extending? • Gary Lapointe • Codeplex • Some tasks only via stsadm • Only for SharePoint (SQL? AD?)

  8. Enters PowerShell • New automation language • Mixture of script and .NET • 600+ cmdlets for SharePoint alone • Target audience? DEV / IT Pro? • Not limited to SharePoint • AD • SQL • IIS • Exchange, Lync…

  9. Why PowerShell? • Saves time & money • Repeatable tasks • E.g. Deploying SharePoint for customers • Eliminates mistakes (loopback check, PDF iFilter) • Tasks with no GUI • E.g. multi-tenant administration • Go beyond original programming • User profiles magic

  10. Basic cmdlets • Get-Command • Get-HelpGet-SPSite • Write-Host „Hello World!”

  11. Pipeline * Get-SPList is a customfunction

  12. DEMO BASIC SHarePoint magic

  13. Thetools • SharePoint 2010 Management Shell • PS & stsadm & SP stuff • PS Script Editor • Quest PowerGUI • THE tool • Debugging, Formatting,Intellisense • FREE • Downloadnow! !!!

  14. Output

  15. DEMO PS: Hello World, PowerGUI, Output, Functions

  16. Usecase: SP Installation • Produces a „clean”, controllable install • Repeatable • Ideal for Testing, QA, Dev

  17. Use case: SP Installation (2) • „Simple” scripts • SP 2010 Unleashed installhttp://tinyurl.com/SPFarm-Config • Installs farm and most service apps • Advanced: AutoSPInstaller • Completly automated • Installs SP and farm

  18. DEMO FARM Installation

  19. Eliminate repetetive tasks • How many times have you done this? • Disabled loopback check? • Configured PDF: Icon, iFilter, Crawl • How many times you made mistakes • Solution: Automate PDF configuration for SharePoint 2010 via PowerShell • Check autoSPinstall for more details

  20. DEMO CONFIGURING PDF STUFF

  21. Use case: Hej SharePoint! DK SE EN • Apply language settings to all sites in a site collection DK SE DK SE

  22. DEMO Multilingual sites

  23. Demo Solution installationSite warm-up

  24. Use profiles story • OOTB: Cannot map all the properties (binary, manager) • PowerShell • More flexible • Automate via scheduled tasks

  25. Demo USER PROFILES

  26. Automate site provisioning • Much easier to control • Automate completly • Configure additional properties (theme?, template,....)

  27. DEMO Site provisioning

  28. Extending PowerShell • This is .NET • Easy to extend with OOTB SharePoint API • Use case: • Configure versioning settingsfor all lists

  29. DEMO Beyond original programmingList versioning

  30. Questions Please fill out the survey!

  31. THANK YOU FOR ATTENDING ENJOY THE SHAREPOINT DAY! Thanks to our sponsors:

More Related