PowerShell for developers

299 views

Published on

Slides from my SharePoint Saturday Austin presentation.

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

No notes for slide
  • What’s the mix? Developers? IT Pros? Everyone Else?How many have used PowerShell?
  • CMD tool that understands regular command line in addition to CmdletsCmdlets – POSH specific commandSTSADM replacement for SP10+
  • ISE – Visual commands new to POSH 3.0Intellisense on ISE+
  • Hyper-V & VMWare – not VB natively, but there are wrappers for itSame syntax across all platformsComplex multi-item delete – may have to wait for site/list to load, may need to create view, just to check select allLow cost of entry to env – no need for deployablesMSFT is full steam ahead on POSH – expect support for most products
  • JS – executes in order – Functs before calls
  • PowerShell for developers

    1. 1. PowerShell for Developers IT Pros need to share Sam Larko Software Engineer, Applied Information Sciences
    2. 2. THANK YOU FOR BEING A PART OF SHAREPOINTSATURDAY AUSTIN! • Please turn off all electronic devices or set them to vibrate • If you must take a phone call, please do so in the hall • Wi-Fi is available, you will need your Guest ID/password (at registration desk) • Feel free to tweet and blog during sessions. Remember to follow @SPSATX and tag #SPSATX in your tweets! SharePoint Saturday Austin is hosted by the Austin SharePoint User Group (@AustinSPUG) 2 | SharePoint Saturday Austin 2013
    3. 3. ABOUT ME• Software Engineer at Applied Information Sciences• Year 6 of 10-Life with SharePoint• @SPSamL• SharePointTherapy.Blogspot.com• Blog.Appliedis.com• Ideas.Appliedis.com 3 | SharePoint Saturday Austin 2013
    4. 4. AGENDA• What is PowerShell?• Why would I want something that IT Pros use?• It’s not as scary as it sounds – It’s Code!• Demo magic• Q&A 4 | SharePoint Saturday Austin 2013
    5. 5. WHAT IS POWERSHELL?• Command line tool• Enhanced w/ .NET• Rich language with many common structures – Loops – Decisions – Functions
    6. 6. TOOLS OF THE TRADE
    7. 7. WHY SHOULD DEVELOPERS CARE?• Useful in SP, SQL, Windows• Faster than UI, Studio• Required – HNSC – Solution deployment• Microsoft says so
    8. 8. IT’S CODE!• Think JavaScript - Functional• Verb-Noun syntax• Can use .Net Framework objects• Pipelines & *-Object Cmdlets
    9. 9. VARIABLES, ARRAYS, AND HASHTABLES, OH MY!
    10. 10. PIPING-HOT OBJECTS• “Daisy chain” commands – Carries Context• Filter, Sort, Format• Note the $_.• Several *-Object
    11. 11. DECISIVELY LOOPY• All major loops – For, Foreach – While, Do/While, Do/Until – ForEach-Object• Decisions – If, Switch – Wildcard Switch
    12. 12. FUNCTIONS• Pretty standard feel• Parameter declaration can be simple or complex• Help comments for functions
    13. 13. DEMOS
    14. 14. QUESTIONS
    15. 15. REFERENCES• AIS Blog Series – Intro to PowerShell – PowerShell for SharePoint – SharePoint 2013 dev VM• Useful POSH Cmdlets – Code Plex• The really smart folks – Gary Lapointe – Critical Path Training – SharePoint Solutions
    16. 16. PLEASE FILL OUT SESSION EVALUATIONS AND THANK YOU FOR ATTENDING!
    17. 17. THANKS TO OUR SPONSORS! 17 | SharePoint Saturday Austin 2013

    ×