SlideShare a Scribd company logo
Managing SharePoint 2010Farms With PowerShellBrian T. JackettSogeti USAwww.BrianTJackett.com@BrianTJackettBrian.Jackett@us.sogeti.com
About MeSenior Consultant at Sogeti USA
Microsoft BI and Collaboration Lead
Blogger
Twitter’er
PowerShell Enthusiast
Central Ohio SPUG Steering Committee
Frog loverNo naps scheduled after lunch, wha…?
AgendaIntroduction to PowerShell
Basic Usage
Demos
Integrate with SharePoint
More Demos
Have some funWhy Are You In This Talk?Completely new to SharePoint administration
Been using STSADM and need to learn PowerShell
Been using PowerShell and want to use on SharePointLittle bit of content for everyone
Quick PollsIs your role admin / developer / other?Have you used STSADM?Have you used PowerShell?If yes, level of proficiency (low, medium, high)?Already working with SharePoint 2010?
Goals for this presentation…Learn the following mantra“If you have to write/click twice then script/automate it”Basics of PowerShell (independent of SharePoint)
Basic overview of SharePoint 2010 commandletsMy Assistants for the Afternoon
Breaking Open PowerShell
PowerShell OriginsIntroduced in 2006
Originally codename Monad
Later renamed to Microsoft Shell (MSH)
Later renamed again to Windows PowerShell
Becoming a cornerstone tool for administrationExchange 2007SQL Server 2008… and now SharePoint 2010!!In 2010, your newest Swiss Army Knife in SP tool bag
What Is PowerShell?PowerShell is…A command line shell
Object orientedAble to support .Net objects, not just textExtensible
New scripting languageAims to be familiar to those writing VBscript or shell scripting like Unix, but simplified like command line
Screenshot Comparison to CMD
Brief Features OverviewConsistent syntaxShame on STSADMObject oriented pipelineAble to pass object output from one cmdlet as input to nextEx. Get-ChildItem | Sort-Object -Property LastWriteTimeBuilt-in providersTalk to Active Directory, registry, WMI, etc. nativelyAliasesBridge the gap for Unix, VBScript, etc. usersTab complete
Many more…System RequirementsDefault installed on Windows 7 and Server 2008 R2Integrated Scripting Environment (ISE) optional role on Server 2008 R2
How To UseSyntaxVerb-Noun –parameter “Parameter value”Ex. Set-Location –Path C:/Variables$variable_name = commandCase insensitivehttp://www.youtube.com/watch?v=KyLqUf4cdwc
How To UseCommandlets (or cmdlets)Premade commands to handle basic functionalityEx. Get-Help; Invoke-Item; Write-Host400+ with V2Modules and snap-ins allow adding custom commandletsScripts (.ps1)Place commands into a script file for repeat useHow To Find HelpSyntaxGet-Help [cmdlet [*]]
Get-Alias [cmdlet [*]]
(object) | Get-MemberWe’ll get to the pipe operator ‘|’ later[] = optional
() = object or variableWhen to UseUse PowerShell when…a process must be consistent
a process must be performed for multiple workstations/users/etc
you don’t know the target that needs to be modified“If you have to write it twice, script it”
Security ConsiderationsBy default, PowerShell is locked down to not run scriptsNeed to unlock with Set-ExecutionPolicy <level>6 levels of execution availableGet-Help about_execution_policiesSharePoint requires permissions to run PowerShellAdd-SPShellAdminhttp://technet.microsoft.com/en-us/library/ee748614(office.14).aspx
A Word about the ProfilePowerShell ProfileCan pre-load aliases, shortcuts, variables, etc.
Good place to load needed assemblies
Accessed at $profile<docs>\WindowsPowerShell\Microsoft.PowerShell_profile<docs>\WindowsPowerShell\Microsoft.PowerShellise_profileEasy to create: “new-item –type file –path <path>”
Enough Intro, Let’s Demo
Demo 1Get-HelpGet-MemberSimple commands with file systemGet-AliasTab complete
Power of the Pipe
Power of the PipeThe Pipe Operator “|”Output from one command becomes input for the next
String together multiple commandsFiltering OptionSort-Object
Where-Object
Select-ObjectDemo 2Piping commands to each otherSortSelectWhere
Our Protégé is Walking
PowerShell ProvidersAble to natively talk to:File System
Environment

More Related Content

PPTX
Jaime Velez: SharePoint 2010 Social Computing
PPTX
Chris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
PDF
Sb chatterjee share point workspace 2010 in action
PPTX
John Burkholder: Disaster Recovery in SharePoint 2010
PPTX
SharePoint 2010 Training Session 1
PPTX
SharePoint Fundamentals (Lesson 1&2)
PPTX
SharePoint 2010 - User Profile Store
PPTX
Introduction To SharePoint 2010
Jaime Velez: SharePoint 2010 Social Computing
Chris McNulty: ECM/WCM Planning, Implementation and Migration Strategies
Sb chatterjee share point workspace 2010 in action
John Burkholder: Disaster Recovery in SharePoint 2010
SharePoint 2010 Training Session 1
SharePoint Fundamentals (Lesson 1&2)
SharePoint 2010 - User Profile Store
Introduction To SharePoint 2010

What's hot (20)

PPTX
Upgrade webcast avoid the mess id
PDF
SharePoint 2010 - Was ist neu, was wird besser!
PPSX
Microsoft SharePoint 2010 Overview Session 1
PPT
AUC Tech-SP 2010
PPTX
Going offline with share point workspace
PPTX
Introduction to sharepoint 2010
PDF
Integration SharePoint 2010 with CRM 2010 by Mai Omar Desouki
PPTX
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
PPTX
Stug -Sir Syed University On Location-Live Event
PPTX
Share point overview
PDF
Configure SharePoint Server 2013 in a Three-Tier Farm
PPTX
SharePoint 2013 features overview
PPTX
Share point 2010-uiimprovements
PPTX
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
PPTX
Jordan Remix - SharePoint 2010
PPTX
Share point 2013
PPTX
SPSPTCDC - SharePoint Admin 101 - SpeedMetal - PowerUser to Admin in 75 Minutes
PPTX
SharePoint 2010 Basics for newbies
PPTX
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
PPTX
SharePoint 2010 - What's New?
Upgrade webcast avoid the mess id
SharePoint 2010 - Was ist neu, was wird besser!
Microsoft SharePoint 2010 Overview Session 1
AUC Tech-SP 2010
Going offline with share point workspace
Introduction to sharepoint 2010
Integration SharePoint 2010 with CRM 2010 by Mai Omar Desouki
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
Stug -Sir Syed University On Location-Live Event
Share point overview
Configure SharePoint Server 2013 in a Three-Tier Farm
SharePoint 2013 features overview
Share point 2010-uiimprovements
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
Jordan Remix - SharePoint 2010
Share point 2013
SPSPTCDC - SharePoint Admin 101 - SpeedMetal - PowerUser to Admin in 75 Minutes
SharePoint 2010 Basics for newbies
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint 2010 - What's New?
Ad

Similar to Brian Jackett: Managing SharePoint 2010 Farms with Powershell (20)

PPTX
Intro to PowerShell
PPTX
Introduction to PowerShell for SharePoint - SharePointFest 2014 workshop
PPTX
PowerShell for SharePoint Admins
PPTX
Power shell for sp admins
PPTX
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
PPTX
Intro to SharePoint + PowerShell
PDF
Sql Server & PowerShell
PPTX
Introduction to windows power shell in sharepoint 2010
PDF
PowerShell In 2024 And Beyond The Future Of Automation.pdf
PPTX
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
PPTX
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
PDF
Introduction to PowerShell
PPTX
Automating PowerShell with SharePoint
PPTX
PowerShell-1
PPTX
Automating Your Enterprise Application Deployments With PowerShell by Geoff V...
PPTX
Using PowerShell for SharePoint 2013
PPTX
SharePoint PowerShell for the Admin and Developer - A Venn Diagram Experience
PDF
Automating Your Enterprise Application Deployments with PowerShell
PPTX
PowerShell Basics for Office Apps and Servers
PPTX
Meet Windows PowerShell
Intro to PowerShell
Introduction to PowerShell for SharePoint - SharePointFest 2014 workshop
PowerShell for SharePoint Admins
Power shell for sp admins
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Intro to SharePoint + PowerShell
Sql Server & PowerShell
Introduction to windows power shell in sharepoint 2010
PowerShell In 2024 And Beyond The Future Of Automation.pdf
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Power shell basics in sharepoint 2010 - SharePoint Saturday Houston 2010
Introduction to PowerShell
Automating PowerShell with SharePoint
PowerShell-1
Automating Your Enterprise Application Deployments With PowerShell by Geoff V...
Using PowerShell for SharePoint 2013
SharePoint PowerShell for the Admin and Developer - A Venn Diagram Experience
Automating Your Enterprise Application Deployments with PowerShell
PowerShell Basics for Office Apps and Servers
Meet Windows PowerShell
Ad

More from SharePoint Saturday NY (20)

PPTX
Joel Oleson: SharePoint 2010 Upgrade Drill Down
PPTX
Peter Ward: The True Power of SharePoint Designer Workflows
PDF
Chris Geier: Information Management in SharePoint 2010
PPTX
Mostafa Elzoghbi: SharePoint 2010 Sanbbox Solutions bestpractices - public
PPTX
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
PPTX
Chris McNulty - Managed Metadata and Taxonomies
PPTX
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
ODP
Matthew Vignau: Memory Management in SharePoint 2007 Development
PPTX
Geoff Varosky: Creating Custom Actions in SharePoint 2010
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
PPTX
Alphonso Scarborough: SharePoint 101
PPTX
Kathryn Birstein: SharePoint 2010 Business Intelligence-Bringing it All Together
PPTX
Susan Lennon: Building SharePoint Dashboards
PPTX
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
PPTX
Scott Lavoie: Best Practices and Pain Points of SharePoint Training
PPTX
Paul Galvin: Introduction to Infopath and Best Practices
PPTX
Greg Hurlman: Developing Custom Service Applications
PPTX
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
PPTX
Alphonso Scarborough: Share point 101
PPSX
Richard Harbridge: 7 SharePoint Success Factors
Joel Oleson: SharePoint 2010 Upgrade Drill Down
Peter Ward: The True Power of SharePoint Designer Workflows
Chris Geier: Information Management in SharePoint 2010
Mostafa Elzoghbi: SharePoint 2010 Sanbbox Solutions bestpractices - public
John Burkholder: SharePoint 2010 in a multi tenant and hosted environment-nyc
Chris McNulty - Managed Metadata and Taxonomies
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Matthew Vignau: Memory Management in SharePoint 2007 Development
Geoff Varosky: Creating Custom Actions in SharePoint 2010
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Alphonso Scarborough: SharePoint 101
Kathryn Birstein: SharePoint 2010 Business Intelligence-Bringing it All Together
Susan Lennon: Building SharePoint Dashboards
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
Scott Lavoie: Best Practices and Pain Points of SharePoint Training
Paul Galvin: Introduction to Infopath and Best Practices
Greg Hurlman: Developing Custom Service Applications
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
Alphonso Scarborough: Share point 101
Richard Harbridge: 7 SharePoint Success Factors

Brian Jackett: Managing SharePoint 2010 Farms with Powershell

Editor's Notes

  • #4: Explain ICanHasCheeseburger.com and photos
  • #5: Half presentation, half demos. Start out introduction to PowerShell, then get into SharePoint integration. Lots of slides, but move quickly through them.
  • #6: Probably can align with 1 of these 3 categories. Try to cover content for everyone but focusing on the 100 level introductory content.
  • #8: This is how I’m rating myself, hopefully these satisfy your goals as wellQuote adapted from Jeremiah Peschka, database application developer in Columbus, OH. Not sure if he borrowed from anyone.Will cover what a commandlet is later in presentation
  • #9: Most stage performers and magicians have an assistant, so I have mine as well
  • #13: Quick view of what PowerShell looks like. On left is a shot of my customized console screen after profile commands have run. Explain more later, but let’s me know if certain things are in place.
  • #36: Show that Central Admin is aware when you run new PowerShell backups, go to restore page.