310 likes | 457 Views
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:.
E N D
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
The problem • A SharePoint farm:
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 • ...
In 2007 • Stsadm • Automation
stsadm • Limited • Not that many cmdlets available • Script language • extending? • Gary Lapointe • Codeplex • Some tasks only via stsadm • Only for SharePoint (SQL? AD?)
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…
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
Basic cmdlets • Get-Command • Get-HelpGet-SPSite • Write-Host „Hello World!”
Pipeline * Get-SPList is a customfunction
DEMO BASIC SHarePoint magic
Thetools • SharePoint 2010 Management Shell • PS & stsadm & SP stuff • PS Script Editor • Quest PowerGUI • THE tool • Debugging, Formatting,Intellisense • FREE • Downloadnow! !!!
DEMO PS: Hello World, PowerGUI, Output, Functions
Usecase: SP Installation • Produces a „clean”, controllable install • Repeatable • Ideal for Testing, QA, Dev
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
DEMO FARM Installation
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
DEMO CONFIGURING PDF STUFF
Use case: Hej SharePoint! DK SE EN • Apply language settings to all sites in a site collection DK SE DK SE
DEMO Multilingual sites
Demo Solution installationSite warm-up
Use profiles story • OOTB: Cannot map all the properties (binary, manager) • PowerShell • More flexible • Automate via scheduled tasks
Demo USER PROFILES
Automate site provisioning • Much easier to control • Automate completly • Configure additional properties (theme?, template,....)
DEMO Site provisioning
Extending PowerShell • This is .NET • Easy to extend with OOTB SharePoint API • Use case: • Configure versioning settingsfor all lists
DEMO Beyond original programmingList versioning
Questions Please fill out the survey!
THANK YOU FOR ATTENDING ENJOY THE SHAREPOINT DAY! Thanks to our sponsors: