Your SlideShare is downloading. ×
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010

2,130

Published on

Slides from the talk with Corey Roth and Kyle Kelin on PowerShell in SharePoint 2010.

Slides from the talk with Corey Roth and Kyle Kelin on PowerShell in SharePoint 2010.

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
2,130
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
55
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Borrowed from SharePoint 2010 Ignite Developer 01 - Roadmap.
  • Demo some basic PowerShell commands.AliasesGet-ProcessGet-Process | Where-Object {$_.ProcessName –like “w3*”}Get-Process | Where-Object {$_.ProcessName –like “w3*”} | Format-List ProcessName, IdGet-Process | Where-Object {$_.ProcessName –like “w3*”} | Convertto-Html > Test.htmlGet-Help Get-Process (or some other command)New-SPWeb -URL http://sp2010/NewSite1 -Template STS#0 -Name "New Site"
  • Add-PSSnapinMicrosoft.SharePoint.PowerShellGet-Command –PSSnapinMicrosoft.SharePoint.PowerShellGet-Command –PSSnapinMicrosoft.SharePoint.PowerShell| Format-ListRedirected output (>)Get-SPSiteNew-SPSiteNew-SPWeb
  • Show C:Code1_RoadmapPowershellHello.ps1GetSharePointDlls.ps1CreateContosoSite.ps1
  • Demo Get-SPHelloWorldDemo Set-SPTitle
  • Transcript

    • 1. PowerShell Basics in SharePoint 2010
      Just enough to be dangerous
      Corey Roth
      Stonebridge
      Twitter: @coreyroth
      Blog: www.dotnetmafia.com
      Kyle Kelin
      Infusion
      Twitter: @spkyle
      Blog: www.dotnetmafia.com
    • 2. Welcome to Houston SharePoint Saturday
      Thank you for being a part of the first ever SharePoint Saturday for the greater Houston area!
      Please turn off all electronic devices or set them to vibrate.
      If you must take a phone call, please do so in the hall so as not to disturb others.
      Thanks to our Platinum Sponsors:
    • 3. Corey Roth
      Consultant for Stonebridge in Tulsa, OK
      Worked in Consumer Electronics, Travel, Advertising, and Energy industries
      Currently doing SharePoint development specializing in Enterprise Search
      Microsoft Solutions Advocate
      Microsoft Award for Customer Excellence (ACE) Winner
      E-mail: coreyroth@gmail.com
      Twitter: @coreyroth
      Blog: www.dotnetmafia.com
    • 4. Kyle Kelin
      Principal Architect at Infusion
      Built applications across multiple industries that include consumer electronics, travel, energy, government, pharmaceuticals, and investment banking
      E-mail: kkelin@infusion.com
      Twitter: @spkyle
      Blog: www.dotnetmafia.com
    • 5. What is PowerShell?
    • 6. Like a command prompt…
      Only better!
      Aliases allow familiar MS-DOS and Unix commands to work (i.e.: dir, ls, cd, del)
      Includes formatting features to display results as lists and tables
      Pipelining allows results of one command to act as input to another
    • 7. What about STSADM?
      Still present, but why use it?
      Old scripts should run
      STSADM extensions considered deprecated (but they’ll probably work)
    • 8. PowerShell Window
    • 9. Demo
    • 10. PS is perfect for SP
      SharePoint functionality provided through Microsoft.SharePoint.PowerShellsnapin
      Add-PSSnapinMicrosoft.SharePoint.PowerShell
      Over 500 commands available
      Get-Command Microsoft.SharePoint.PowerShell
    • 11. Demo
    • 12. Execution Policy
      By default, PowerShell does not allow scripts to run
      Change policy with Set-ExecutionPoilicy
      Policy Settings
      Restricted (default) – scripts will not execute
      Unrestricted – scripts can execute. Unsigned scripts will prompt user to execute
      Bypass (developer mode) – scripts can execute, no user prompting to execute
    • 13. Demo
    • 14. Cmdlets
      Extend PowerShell using Visual Studio
      Can be executed in PowerShell as a snapin or module
    • 15. Demo
    • 16. Questions?
    • 17. Session Evaluation
      Please complete and turn in your Session Evaluation Form so we can improve future events.
      Presenter:
      Corey Roth / Kyle Kelin
      Session Name:
      PowerShell Basics in SharePoint 2010
    • 18. Thanks to our Sponsors
    • 19. Thanks
      Corey Roth
      Stonebridge
      Twitter: @coreyroth
      Blog: www.dotnetmafia.com
      Kyle Kelin
      Infusion
      Twitter: @spkyle
      Blog: www.dotnetmafia.com

    ×