Download presentation
Presentation is loading. Please wait.
Published byLillian Morris Modified over 9 years ago
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 http://www.sharepointusecases.com
3
Contents Why automation? Automation via PowerShell Hello world Basic SharePoint PS Advanced PS Magic and scripts
4
The problem A SharePoint farm:
5
The problem (2) – SharePoint structure Farm Web Applications – Site Collections – Sites – Lists –... Service Applications – Search – User profile –... 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
6
In 2007 Stsadm Automation
7
stsadm Limited – Not that many cmdlets available – Script language extending? – Gary Lapointe 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-Help Get-SPSite Write-Host „Hello World!”
11
Pipeline Get-SPSite| Get-SPWeb| Get-SPList* * Get-SPList is a custom function
12
BASIC SHAREPOINT MAGIC DEMO
13
The tools SharePoint 2010 Management Shell – PS & stsadm & SP stuff PS Script Editor Quest PowerGUI – THE tool Debugging, Formatting, Intellisense – FREE – Download now! Download now! !!!
14
Output ScreenGridCSVHTMLXML.NET
15
PS: HELLO WORLD, POWERGUI, OUTPUT, FUNCTIONS DEMO
16
Use case: SP Installation Produces a „clean”, controllable install Repeatable Ideal for Testing, QA, Dev
17
Use case: SP Installation (2) „Simple” scripts – SP 2010 Unleashed install http://tinyurl.com/SPFarm-Config http://tinyurl.com/SPFarm-Config – Installs farm and most service apps Advanced: AutoSPInstallerAutoSPInstaller – Completly automated – Installs SP and farm
18
FARM INSTALLATION DEMO
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 PowerShellAutomate PDF configuration for SharePoint 2010 via PowerShell – Check autoSPinstall for more details
20
CONFIGURING PDF STUFF DEMO
21
Use case: Hej SharePoint! Apply language settings to all sites in a site collection Apply language settings to all sites in a site collection DK SE EN
22
MULTILINGUAL SITES DEMO
23
SOLUTION INSTALLATION SITE WARM-UP Demo
24
Use profiles story OOTB: Cannot map all the properties (binary, manager) PowerShell – More flexible – Automate via scheduled tasks User Profile SA File Share (pics) HR LOB (properties) SharePoint
25
USER PROFILES Demo
26
Automate site provisioning Much easier to control Automate completly Configure additional properties (theme?, template,....) PortalABCC1C2C3C31C32C321C322C3221C33D
27
SITE PROVISIONING DEMO
28
Extending PowerShell This is.NET Easy to extend with OOTB SharePoint API Use case: – Configure versioning settings for all lists SPFarm SPWebApplicationSPSiteSPWeb???
29
BEYOND ORIGINAL PROGRAMMING LIST VERSIONING DEMO
30
Questions Please fill out the survey!
31
THANK YOU FOR ATTENDING Thanks to our sponsors: ENJOY THE SHAREPOINT DAY!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.