SUGUK Let me script that for you

319 views

Published on

Slides from my SUGUK talk 17/07/12 - PowerShell for Developers

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
319
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • SharePoint Consultant and Developer for Mando GroupEmail, Tweet me, add me on Linked In etc
  • SUGUK Let me script that for you

    1. 1. Let me script that for you A Developers Guide to PowerShellAdam BurcherThe SharePoint Bakeradam@thesharepointbaker.co.ukhttp://www.thesharepointbaker.co.uk#sharepointbaker
    2. 2. The Plan • Brief PowerShell Intro • Why I use PowerShell • So should you use it? • DEMO writing some scripts • Where next? • DEMO Enhancing Scripts (if time!) • Q&A
    3. 3. What is PowerShell? “Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. “ - http://technet.microsoft.com/library/bb978526.aspx • Built on the .Net Framework • Run pre-built/compiled cmdlets • Very extensible – console, custom scripts/functoins, custom compiled modules etc
    4. 4. Why PowerShell – My Issues • Multiple environments needing to be kept in sync Developer Dev UAT Staging Production• Manual setup/configuration • Time consuming + error prone• Releasing notes, configuration guides…paperwork to track every change• Needing to rollout content and configuration
    5. 5. So should you use it? • It depends! • What suits - • your setup? • your environment? • your clients? • “But I can do this with an Event Receiver” • Code vs Content vs Configuration
    6. 6. What are we Scripting? • What we have • Site Collection – http://site.tsb.local/sites/suguk • Publishing Portal • WSP with some basic branding – masterpage, CSS, Page layout, Content Type, List Definition • What we need • Creating a List + Populating it • Some Content
    7. 7. > THE DEMO
    8. 8. Where next? • Treat your scripts like Code • Code Review • Test! • Put your scripts in TFS • Source Control • Versioning • Use as part of CI process • Let TFS build and configure your site • Create Release/Deployment packages
    9. 9. > EXTENDING SCRIPTS DEMO
    10. 10. Summary • Brief PowerShell intro • Scripting options for rolling out ‘content’ • Easily converting C# to PowerShell • Hopefully given some ideas!
    11. 11. The End – Thank you for listening Any Questions?adam@thesharepointbaker.co.ukhttp://www.thesharepointbaker.co.uk#sharepointbaker

    ×