Automating SharePoint 2010 administration tasks with Power Shell<br />Toni Frankola<br />SharePoint MVP, Croatia<br />Toni...
Materials<br />Book<br />Blog:<br />http://www.sharepointusecases.com<br />
Contents<br />
The problem<br />A SharePoint farm:<br />
The problem (2) – SharePoint structure<br />Farm<br />Web Applications<br />Site Collections<br />Sites<br />Lists<br />.....
In 2007<br />Stsadm<br />Automation<br />
stsadm<br />Limited<br />Not that many cmdlets available<br />Script language<br />extending?<br />Gary Lapointe<br />Code...
Enters PowerShell<br />New automation language<br />Mixture of script and .NET<br />600+ cmdlets for SharePoint alone<br /...
Why PowerShell?<br />Saves time & money<br />Repeatable tasks<br />E.g. Deploying SharePoint for customers<br />Eliminates...
Basic cmdlets<br />Get-Command<br />Get-HelpGet-SPSite<br />Write-Host „Hello World!”<br />
Pipeline<br />* Get-SPList is a customfunction<br />
BASIC SHarePoint magic<br />DEMO<br />
Thetools<br />SharePoint 2010 Management Shell<br />PS & stsadm & SP stuff<br />PS Script Editor<br />Quest PowerGUI<br />...
Output<br />
PS: Hello World, PowerGUI, Output, Functions<br />DEMO<br />
Usecase: SP Installation<br />Produces a „clean”, controllable install<br />Repeatable<br />Ideal for Testing, QA, Dev<br />
Use case: SP Installation (2)<br />„Simple” scripts<br />SP 2010 Unleashed installhttp://tinyurl.com/SPFarm-Config<br />In...
FARM Installation<br />DEMO<br />
Eliminate repetetive tasks<br />How many times have you done this?<br />Disabled loopback check?<br />Configured PDF: Icon...
CONFIGURING PDF STUFF<br />DEMO<br />
Use case: Hej SharePoint!<br />Apply language settings to all sites in a site collection<br />DK<br />SE<br />EN<br />DK<b...
Multilingual sites<br />DEMO<br />
Solution installationSite warm-up<br />Demo<br />
Use profiles story<br />OOTB: Cannot map all the properties (binary, manager)<br />PowerShell<br />More flexible<br />Auto...
USER PROFILES<br />Demo<br />
Automate site provisioning<br />Much easier to control<br />Automate completly<br />Configure additional properties (theme...
Site provisioning<br />DEMO<br />
Extending PowerShell<br />This is .NET<br />Easy to extend with OOTB SharePoint API<br />Use case:<br />Configure versioni...
Beyond original programmingList versioning<br />DEMO<br />
Questions<br />Please fill out the survey!<br />
THANK YOU FOR ATTENDING<br />ENJOY THE SHAREPOINT DAY!<br />Thanks to our sponsors:<br />
Upcoming SlideShare
Loading in …5
×

Automating SharePoint 2010 administration tasks with PowerShell

9,036 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
9,036
On SlideShare
0
From Embeds
0
Number of Embeds
5,006
Actions
Shares
0
Downloads
70
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Automating SharePoint 2010 administration tasks with PowerShell

  1. 1. Automating SharePoint 2010 administration tasks with Power Shell<br />Toni Frankola<br />SharePoint MVP, Croatia<br />Toni.frankola@acceleratio.hr<br />http://sharepointusecases.com<br />@ToniFrankola<br />
  2. 2. Materials<br />Book<br />Blog:<br />http://www.sharepointusecases.com<br />
  3. 3. Contents<br />
  4. 4. The problem<br />A SharePoint farm:<br />
  5. 5. The problem (2) – SharePoint structure<br />Farm<br />Web Applications<br />Site Collections<br />Sites<br />Lists<br />...<br />Service Applications<br />Search<br />User profile<br />...<br />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<br />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<br />
  6. 6. In 2007<br />Stsadm<br />Automation<br />
  7. 7. stsadm<br />Limited<br />Not that many cmdlets available<br />Script language<br />extending?<br />Gary Lapointe<br />Codeplex<br />Some tasks only via stsadm<br />Only for SharePoint (SQL? AD?)<br />
  8. 8. Enters PowerShell<br />New automation language<br />Mixture of script and .NET<br />600+ cmdlets for SharePoint alone<br />Target audience? DEV / IT Pro?<br />Not limited to SharePoint<br />AD<br />SQL<br />IIS<br />Exchange, Lync…<br />
  9. 9. Why PowerShell?<br />Saves time & money<br />Repeatable tasks<br />E.g. Deploying SharePoint for customers<br />Eliminates mistakes (loopback check, PDF iFilter)<br />Tasks with no GUI<br />E.g. multi-tenant administration<br />Go beyond original programming<br />User profiles magic<br />
  10. 10. Basic cmdlets<br />Get-Command<br />Get-HelpGet-SPSite<br />Write-Host „Hello World!”<br />
  11. 11. Pipeline<br />* Get-SPList is a customfunction<br />
  12. 12. BASIC SHarePoint magic<br />DEMO<br />
  13. 13. Thetools<br />SharePoint 2010 Management Shell<br />PS & stsadm & SP stuff<br />PS Script Editor<br />Quest PowerGUI<br />THE tool<br />Debugging, Formatting,Intellisense<br />FREE<br />Downloadnow!<br />!!!<br />
  14. 14. Output<br />
  15. 15. PS: Hello World, PowerGUI, Output, Functions<br />DEMO<br />
  16. 16. Usecase: SP Installation<br />Produces a „clean”, controllable install<br />Repeatable<br />Ideal for Testing, QA, Dev<br />
  17. 17. Use case: SP Installation (2)<br />„Simple” scripts<br />SP 2010 Unleashed installhttp://tinyurl.com/SPFarm-Config<br />Installs farm and most service apps<br />Advanced: AutoSPInstaller<br />Completly automated<br />Installs SP and farm<br />
  18. 18. FARM Installation<br />DEMO<br />
  19. 19. Eliminate repetetive tasks<br />How many times have you done this?<br />Disabled loopback check?<br />Configured PDF: Icon, iFilter, Crawl<br />How many times you made mistakes<br />Solution: Automate PDF configuration for SharePoint 2010 via PowerShell<br />Check autoSPinstall for more details<br />
  20. 20. CONFIGURING PDF STUFF<br />DEMO<br />
  21. 21. Use case: Hej SharePoint!<br />Apply language settings to all sites in a site collection<br />DK<br />SE<br />EN<br />DK<br />SE<br />DK<br />SE<br />
  22. 22. Multilingual sites<br />DEMO<br />
  23. 23. Solution installationSite warm-up<br />Demo<br />
  24. 24. Use profiles story<br />OOTB: Cannot map all the properties (binary, manager)<br />PowerShell<br />More flexible<br />Automate via scheduled tasks<br />
  25. 25. USER PROFILES<br />Demo<br />
  26. 26. Automate site provisioning<br />Much easier to control<br />Automate completly<br />Configure additional properties (theme?, template,....)<br />
  27. 27. Site provisioning<br />DEMO<br />
  28. 28. Extending PowerShell<br />This is .NET<br />Easy to extend with OOTB SharePoint API<br />Use case:<br />Configure versioning settingsfor all lists<br />
  29. 29. Beyond original programmingList versioning<br />DEMO<br />
  30. 30. Questions<br />Please fill out the survey!<br />
  31. 31. THANK YOU FOR ATTENDING<br />ENJOY THE SHAREPOINT DAY!<br />Thanks to our sponsors:<br />

×