270 likes | 407 Views
Get To The Point SharePoint 2010 Farm Admin Bootcamp. Mark Rhodes. Agenda. Goals of Workshop Course Overview Lab Overview. Module 1. Introduction to PowerShell. Why Use PowerShell?. Repeatable Tasks Ease of access Some things simply cannot be done via GUI or STSADM
E N D
Get To The PointSharePoint 2010 Farm Admin Bootcamp Mark Rhodes
Agenda • Goals of Workshop • Course Overview • Lab Overview
Module 1 Introduction to PowerShell
Why Use PowerShell? • Repeatable Tasks • Ease of access • Some things simply cannot be done via GUI or STSADM • Why not VBScript? • Object Based "...Like fire or guns, PowerShell is a good tool, you just need to have a healthy respect for it..." Todd Klindt "...PowerShell is not a vigorous artillery exercise, but it can be almost as much fun." Sean McDonough "I've got two words for you: Get-Help. That's all you need to learn PowerShell." John Ferringer
About PowerShell • Currently in V3.0 • This is what SharePoint 2013 uses. • SharePoint 2010 uses V2.0 • Snap-Ins • PowerShell v1.0 / V1.1 • Modules • Added in PowerShell v2.0 • Used in PowerShell v3.0
SharePoint and PowerShell • This is where all future investments lie • Administrators must be fluent in PowerShell • STSADM is now deprecated
Syntax Breakdown • Cmdlets • These are the commands loaded by snap-ins and modules. • Functions • Snippets of code that can be loaded and run • Alias • A shortened way to access a cmdlet or function • Eg “C:” is an alias for “Set-Location C:”
Cmdlets • CmdLets • Verb • EgGet,Set,Add,Remove,Attach,Detach,Clear,New • Noun • EgService,WindowsFeature • All SharePoint Nouns prefixed with SP
Functions • Pre-written code snippets • Time savers • Can accept piped input
Aliases • Shortened commands • ASNP = Add-PSSnapin
Finding your way • Get-Help • examples • full • Get-Command • Verb • Noun • Get-Member • Methods • Properties
Everything is an Object • Get-Member • Methods • Properties
Sorting and Filtering • Sort-Object • Can format object output based on properties • Can limit number of objects returned • Where-Object • Eq • Neq • Match • Notmatch • Gt • Lt • Like • Notlike • Contains • notcontains
Loops • Multiple Loop Types Available • Do While • Do Until • For • For Each
SharePoint 2010 • 500+ PowerShell CmdLets • 538 Cmdlets • 4 Aliases • Some operations just cannot be done via GUI • Multi-Tenancy Feature • State Service (Can only be done in Farm Config Wizard, cannot be done in CA) • Naming your service application databases with out including huge guids • Establishing trusts with other Farms • Some operations are still more difficult with PowerShell • stsadm-o getproperty / setproperty • Creating Enterprise Search • Some other service applications
Modules 2 and 3 Backup and recovery
SharePoint 2010 Backup • Granular Backup Built-In • Export Site Collections, lists, sites • Recover from Unattached Content Db • Farm Backup • Better Control • Reporting • Real Time visibility
Farm Backup • While better, still no: • Item Level Recovery • Scheduling • Management • Monitoring • Tape • Very Large disk requirements
Unattached database recovery • Able to restore from SQL backup without building a recovery farm • Can connect to any restored SQL database and recover content • No need to add databases to web application • Exports to package
Backup and Recovery Deep Dive • Farm • SharePoint • Service Applications • Web Applications • Content Databases • Site Collection • Sites • List • Items • SQL • Content Databases • SharePoint Farm Databases • Service Application Databases
Recommended Approach • Backup all servers with a server backup solution • Backup all Databases via SQL daily, with transaction log backups every few hours • Backup Farm regularly if you: • Do not have high availability • Need granular recovery • Are Paranoid
Module 4 SharePoint Maintenance
Patching 101 • You can now patch bits and database seperately • Databases can run within compatibility boundaries • Patch the binaries on a week night • Patch the databases on the weekend • SharePoint now knows : • Product Build numbers • Database Schema
Installing the files • Just install on one server at a time • No need to rush • Exit out of the wizard on each one
Patching the database • Run the Psconfig Wizard on every server in your farm • Gives control over timing • Gives control over content
Flexible approaches • Hybrid Patching allows flexible approach • Allows maximum control over patching schedule
Hybrid Patching • Install updates • Detach Content Databases • Patch Databases • Re-attach Content Databases • Upgrade Content Databases