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

Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010

on

  • 3,201 views

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.

Statistics

Views

Total Views
3,201
Views on SlideShare
3,180
Embed Views
21

Actions

Likes
0
Downloads
52
Comments
0

2 Embeds 21

http://www.slideshare.net 20
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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

Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010 Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010 Presentation Transcript

  • 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
  • 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:
  • 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
  • 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
  • What is PowerShell?
  • 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
  • What about STSADM?
    Still present, but why use it?
    Old scripts should run
    STSADM extensions considered deprecated (but they’ll probably work)
  • PowerShell Window
  • Demo
  • 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
  • Demo
  • 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
  • Demo
  • Cmdlets
    Extend PowerShell using Visual Studio
    Can be executed in PowerShell as a snapin or module
  • Demo
  • Questions?
  • 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
  • Thanks to our Sponsors
  • Thanks
    Corey Roth
    Stonebridge
    Twitter: @coreyroth
    Blog: www.dotnetmafia.com
    Kyle Kelin
    Infusion
    Twitter: @spkyle
    Blog: www.dotnetmafia.com