2. Thank you for being a part of the first
SharePoint Saturday 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 so as not
to disturb others.
• Open wireless access is available with no password
• Feel free to “tweet and blog” during the session
• Thanks to our Title Sponsors:
3. ABOUT PERFICIENT
Leading Technology Consulting & Solutions Firm
Project size, Breadth of Expertise
• Founded in 1997
• $240MM+ in annualized Revenue
• Over 1,400 highly-experienced Consultants
• 19 Locations across North America
• 80+% of Revenue from recurring Clients
• Served over 400 Clients in past 12 months
Software Solutions Expertise, including:
Depth of Expertise, Efficiency & Value,
• Enterprise Portals & Content Management Client Importance
• SOA, EAI and BPM
• e-Commerce and Product Information Mgmt
• Business Intelligence/ETL
• Customer Relationship Management
• User Experience/UCD
• Significant Integration Expertise
Key Differentiators
• Focused expertise, lower cost, faster time-to-value
• IT Solutions with Business Focus
• National consultants overlay Local delivery model
• Mature, proven Project Methodology
• Global Development Centers in China & Europe
• Healthcare Thought Leadership
3
4. AGENDA
• Getting Started
• Creating the Farm
• Creating Services
• Modifying Configuration
• Hot Powershell Tips
4
5. GETTING STARTED
• PowerGUI is your best friend
http://www.powergui.org
• Codeplex example powershell installation
http://autospinstaller.codeplex.com/
• Understand SharePoint config.xml
http://technet.microsoft.com/en-us/library/cc261668.aspx
• Listing of SharePoint site templates
http://toddbaginski.com/blog/which-sharepoint-2010-site-template-is-right-for-me/
• Slipstreaming SharePoint w/Service Packs
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=295
• ULSViewer
http://archive.msdn.microsoft.com/ULSViewer
• ISO Reader
http://www.magiciso.com/tutorials/miso-magicdisc-history.htm
5
8. INSTALLING SHAREPOINT
• Create New Central Administration
New-SPConfigurationDatabase –DatabaseName $databaseFarmDB –DatabaseServer $databaseServerName `
–AdministrationContentDatabaseName $databaseFarmAdminDB `
–Passphrase (ConvertTo-SecureString $farmPassPhrase –AsPlaintext –Force) `
-FarmCredentials $Cred_Farm
if (-not $?) { throw "Failed to create admin database." }
Install-SPHelpCollection -All
Initialize-SPResourceSecurity
Install-SPService
Install-SPFeature –AllExistingFeatures
Start-Sleep -s 10
#########################################################
New-SPCentralAdministration -Port $CentralAdminPort -WindowsAuthProvider $WebAuthProvider
Install-SPApplicationContent
• Add Managed Accounts
New-SPManagedAccount -Credential $Cred_spsearch
New-SPManagedAccount -Credential (Get-Credential) – pop up for user to type credentials
8
9. INSTALLING SHAREPOINT
• Create New Web Application
# Create a new Sharepoint WebApplication
New-SPWebApplication -Name $WebAppName `
-Port $WebAppPort `
-HostHeader $WebAppHostHeader `
-URL $WebAppUrl `
-ApplicationPool $WebAppAppPool `
-ApplicationPoolAccount (Get-SPManagedAccount $WebAppAppPoolAccount) `
-DatabaseName $WebAppDatabaseName `
-DatabaseServer $WebAppDatabaseServer
# Create a new Sharepoint Site Collection
New-SPSite -URL $SiteCollectionURL `
-OwnerAlias $SiteCollectionOwner `
-Language $SiteCollectionLanguage `
-Template $SiteCollectionTemplate `
-Name $SiteCollectionName `
-SecondaryOwnerAlias $SiteCollectionSecondary
9
10. INSTALLING SHAREPOINT
• Applications General Installation Guideline
$app– Get-SPServiceApplicationPool $wasAppPoolName -ea SilentlyContinue
= Setup proxy
if($app -eq $null){
– Setup application service "Creating Application Pool"
Write-Output
• Setup Search}
$app = New-SPServiceApplicationPool $wasAppPoolName -Account $webappadmin
– http://blogs.msdn.com/b/jjameson/archive/2011/02/28/powershell-script-to-configure-
Write-Output "Creating web analytics service application"
$was = New-SPWebAnalyticsServiceApplication -Name $WebAnalyticsSAName `
search-in-sharepoint-server-2010.aspx
-ApplicationPool $wasAppPoolName `
• Setup Managed Metadata -ReportingDataRetention 20 `
-SamplingRate 100 `
– http://blogs.msdn.com/b/mcsnoiwb/archive/2010/05/26/script-a-metadata-service-
-ListOfReportingDatabases $reportingDbSubscription `
-ListOfStagingDatabases $stageDbSubscription
application-using-powershell.aspx Service Application" }
if (-not $?) { throw "Failed to create WAS
– Create new term http://pacsharepoint.com/2010/06/create-new-term-in-managed-
Get-SPServiceInstance | where-object {$_.TypeName -eq $wasServiceTypeName} | Start-SPServiceInstance
if (-not $?) { throw "Failed to start WAS Service Application" }
metadata.html
New-SPWebAnalyticsServiceApplicationProxy -Name $WebAnalyticsSaProxyName `
• Setup Web Analytics -ServiceApplication $was
if (-not $?) { throw "Failed to create WAS Proxy Service Application" }
• Setup User Profile Service -
Get-SPServiceInstance | where-object {$_.TypeName -eq $wasTypeName} | Start-SPServiceInstance
It is easier to “click, click setup”
if (-not $?) { throw "Failed to start WAS Proxy Service Application" }
• Setup additional services
Write-Output "verify service installation"
$adminsearchurl = $adminurl + "/_admin/ServiceApplications.aspx"
– Access, Performance Point, Excel Services, etc
start iexplore $adminsearchurl
• Setup additional parameters
– Content types, email, etc
10
11. HOT POWERSHELL TIPS/SCRIPTS
• Get all features of a certain type
– Get-SPFeature | select-object DisplayName | select-string –Pattern
“Perficient”
• Install WSP files
• Get list of all security groups in a web
• Find string in CEWP data
• Get Permission of all files
• Get All Closed Web Parts
• Check if files are ghosted
• Setup a new site collection
• Setup Adobe iFilter
• Get crawl schedules
11
12. Thanks to our Sponsors
THANKS TO OUR OTHER SPONSORS!
14. THANK YOU!
For further information, please contact:
Suzanne George
Suzanne.George@perficient.com
Sr. Architect
Perficient - Microsoft West Region
Twitter: spgenie
14