SQL Database Design For Developers at php[tek] 2024
SUGUK Let me script that for you
1. Let me script that for you
A Developers Guide to PowerShell
Adam Burcher
The SharePoint Baker
adam@thesharepointbaker.co.uk
http://www.thesharepointbaker.co.uk
#sharepointbaker
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. 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. 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. 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. 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
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