SlideShare uma empresa Scribd logo
1 de 14
ADMINISTRATION OF SHAREPOINT
  2010 THROUGH POWERSHELL
INFORMATION TECHNOLOGY - 300
        Suzanne George
           Perficient
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:
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
AGENDA
•   Getting Started
•   Creating the Farm
•   Creating Services
•   Modifying Configuration
•   Hot Powershell Tips




                                       4
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
INSTALLING SHAREPOINT – PREP
• Create/Edit Powershell Profile
> Test-path $profile
> New-item –type file –force $profile
> Notepad $profile
> Set-ExecutionPolicy RemoteSigned
-add line: Add-PsSnapin Microsoft.SharePoint.Powershell
> . $profile
• Install Pre-requisites – use /h parameter to get argument options
> Write-Output "Installing ADONETDataServices"
> Start-Process "$folderADONETDataServices_v15_CTP2_RuntimeOnly.exe" -Wait -ArgumentList " /q“
> Write-Output "Installing PowerGUI"
> Start-Process "$folderPowerGUI.msi" -Wait -ArgumentList " /quiet /qb /liwe $logfolder-powerguiwindo.log
/norestart"

• Check registry
$regkey = "HKLM:SOFTWAREMicrosoftMSSQLServerClientConnectTo"
$exists = Get-ItemProperty -Path $regkey -Name $databaseServerName -ErrorAction SilentlyContinue
$regkey = "HKLM:SystemCurrentControlSetControlLsa"
$name = "DisableLoopbackCheck"
$exists = Get-ItemProperty -Path "$regkey" -Name "$name" -ErrorAction SilentlyContinue


                                                                                                             6
INSTALLING SHAREPOINT
• Install SharePoint
      – Config.Xml - http://technet.microsoft.com/en-us/library/cc261668.aspx,
        http://blogs.msdn.com/b/ekraus/archive/2009/11/20/automated-sharepoint-2010-
        install-with-powershell.aspx
$config = "sharepointInstall_config.xml"
$bits = "e:"
cls
Write-Progress -Activity "Installing SharePoint Quietly" -Status "Copying config file locally"
Copy-Item $config -Destination $bits
Write-Progress -Activity "Installing SharePoint Quietly" -Status "Installing SharePoint"
cmd.exe /C "$bitssetup.exe /config $config"
PS C:sharepointScript> .Install-SharePoint.ps1
• 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
if (-not $?) { throw "Script error." }



                                                                                                  7
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
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
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
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
Thanks to our Sponsors
THANKS TO OUR OTHER SPONSORS!
SUMMARY
•   Installing SharePoint
•   Configuring Services
•   Advanced Configuration
•   Powershell Scripts




                                   13
THANK YOU!
For further information, please contact:

Suzanne George
Suzanne.George@perficient.com
Sr. Architect
Perficient - Microsoft West Region
Twitter: spgenie




                                           14

Mais conteúdo relacionado

Mais de Perficient, Inc.

Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.
Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.
Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.Perficient, Inc.
 
Content, Commerce, and... COVID
Content, Commerce, and... COVIDContent, Commerce, and... COVID
Content, Commerce, and... COVIDPerficient, Inc.
 
Centene's Financial Transformation Journey: A OneStream Success Story
Centene's Financial Transformation Journey: A OneStream Success StoryCentene's Financial Transformation Journey: A OneStream Success Story
Centene's Financial Transformation Journey: A OneStream Success StoryPerficient, Inc.
 
Automate Medical Coding With WHODrug Koda
Automate Medical Coding With WHODrug KodaAutomate Medical Coding With WHODrug Koda
Automate Medical Coding With WHODrug KodaPerficient, Inc.
 
Preparing for Your Oracle, Medidata, and Veeva CTMS Migration Project
Preparing for Your Oracle, Medidata, and Veeva CTMS Migration ProjectPreparing for Your Oracle, Medidata, and Veeva CTMS Migration Project
Preparing for Your Oracle, Medidata, and Veeva CTMS Migration ProjectPerficient, Inc.
 
Accelerating Partner Management: How Manufacturers Can Navigate Covid-19
Accelerating Partner Management: How Manufacturers Can Navigate Covid-19Accelerating Partner Management: How Manufacturers Can Navigate Covid-19
Accelerating Partner Management: How Manufacturers Can Navigate Covid-19Perficient, Inc.
 
The Critical Role of Audience Intelligence with Eric Enge and Rand Fishkin
The Critical Role of Audience Intelligence with Eric Enge and Rand FishkinThe Critical Role of Audience Intelligence with Eric Enge and Rand Fishkin
The Critical Role of Audience Intelligence with Eric Enge and Rand FishkinPerficient, Inc.
 
Cardtronics Future Ready with Oracle EPM Cloud
Cardtronics Future Ready with Oracle EPM CloudCardtronics Future Ready with Oracle EPM Cloud
Cardtronics Future Ready with Oracle EPM CloudPerficient, Inc.
 
Teams Summit - What is New and Coming
Teams Summit -  What is New and ComingTeams Summit -  What is New and Coming
Teams Summit - What is New and ComingPerficient, Inc.
 
Empower Your Organization with Teams & Remote Work Crisis Management
Empower Your Organization with Teams & Remote Work Crisis ManagementEmpower Your Organization with Teams & Remote Work Crisis Management
Empower Your Organization with Teams & Remote Work Crisis ManagementPerficient, Inc.
 
Adoption & Change Management Overview
Adoption & Change Management OverviewAdoption & Change Management Overview
Adoption & Change Management OverviewPerficient, Inc.
 
Microsoft Teams: Measuring Activity of Employees Working from Home
Microsoft Teams: Measuring Activity of Employees Working from HomeMicrosoft Teams: Measuring Activity of Employees Working from Home
Microsoft Teams: Measuring Activity of Employees Working from HomePerficient, Inc.
 
Securing Teams with Microsoft 365 Security for Remote Work
Securing Teams with Microsoft 365 Security for Remote WorkSecuring Teams with Microsoft 365 Security for Remote Work
Securing Teams with Microsoft 365 Security for Remote WorkPerficient, Inc.
 
Infrastructure Best Practices for Teams Remote Workers
Infrastructure Best Practices for Teams Remote WorkersInfrastructure Best Practices for Teams Remote Workers
Infrastructure Best Practices for Teams Remote WorkersPerficient, Inc.
 
Accelerate Adoption for Microsoft Teams
Accelerate Adoption for Microsoft TeamsAccelerate Adoption for Microsoft Teams
Accelerate Adoption for Microsoft TeamsPerficient, Inc.
 
Preparing for Project Cortex and the Future of Knowledge Management
Preparing for Project Cortex and the Future of Knowledge ManagementPreparing for Project Cortex and the Future of Knowledge Management
Preparing for Project Cortex and the Future of Knowledge ManagementPerficient, Inc.
 
Utilizing Microsoft 365 Security for Remote Work
Utilizing Microsoft 365 Security for Remote Work Utilizing Microsoft 365 Security for Remote Work
Utilizing Microsoft 365 Security for Remote Work Perficient, Inc.
 
Crisis Management & Remote Work w/ Microsoft 365
Crisis Management & Remote Work w/ Microsoft 365Crisis Management & Remote Work w/ Microsoft 365
Crisis Management & Remote Work w/ Microsoft 365Perficient, Inc.
 
Cancer Center’s Forward-Looking Rolling Forecast with Oracle Cloud
Cancer Center’s Forward-Looking Rolling Forecast with Oracle CloudCancer Center’s Forward-Looking Rolling Forecast with Oracle Cloud
Cancer Center’s Forward-Looking Rolling Forecast with Oracle CloudPerficient, Inc.
 
Eric Enge and Jay Baer: Key Factors for Delivering Seamless UX
Eric Enge and Jay Baer: Key Factors for Delivering Seamless UXEric Enge and Jay Baer: Key Factors for Delivering Seamless UX
Eric Enge and Jay Baer: Key Factors for Delivering Seamless UXPerficient, Inc.
 

Mais de Perficient, Inc. (20)

Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.
Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.
Oracle Strategic Modeling Live: Defined. Discussed. Demonstrated.
 
Content, Commerce, and... COVID
Content, Commerce, and... COVIDContent, Commerce, and... COVID
Content, Commerce, and... COVID
 
Centene's Financial Transformation Journey: A OneStream Success Story
Centene's Financial Transformation Journey: A OneStream Success StoryCentene's Financial Transformation Journey: A OneStream Success Story
Centene's Financial Transformation Journey: A OneStream Success Story
 
Automate Medical Coding With WHODrug Koda
Automate Medical Coding With WHODrug KodaAutomate Medical Coding With WHODrug Koda
Automate Medical Coding With WHODrug Koda
 
Preparing for Your Oracle, Medidata, and Veeva CTMS Migration Project
Preparing for Your Oracle, Medidata, and Veeva CTMS Migration ProjectPreparing for Your Oracle, Medidata, and Veeva CTMS Migration Project
Preparing for Your Oracle, Medidata, and Veeva CTMS Migration Project
 
Accelerating Partner Management: How Manufacturers Can Navigate Covid-19
Accelerating Partner Management: How Manufacturers Can Navigate Covid-19Accelerating Partner Management: How Manufacturers Can Navigate Covid-19
Accelerating Partner Management: How Manufacturers Can Navigate Covid-19
 
The Critical Role of Audience Intelligence with Eric Enge and Rand Fishkin
The Critical Role of Audience Intelligence with Eric Enge and Rand FishkinThe Critical Role of Audience Intelligence with Eric Enge and Rand Fishkin
The Critical Role of Audience Intelligence with Eric Enge and Rand Fishkin
 
Cardtronics Future Ready with Oracle EPM Cloud
Cardtronics Future Ready with Oracle EPM CloudCardtronics Future Ready with Oracle EPM Cloud
Cardtronics Future Ready with Oracle EPM Cloud
 
Teams Summit - What is New and Coming
Teams Summit -  What is New and ComingTeams Summit -  What is New and Coming
Teams Summit - What is New and Coming
 
Empower Your Organization with Teams & Remote Work Crisis Management
Empower Your Organization with Teams & Remote Work Crisis ManagementEmpower Your Organization with Teams & Remote Work Crisis Management
Empower Your Organization with Teams & Remote Work Crisis Management
 
Adoption & Change Management Overview
Adoption & Change Management OverviewAdoption & Change Management Overview
Adoption & Change Management Overview
 
Microsoft Teams: Measuring Activity of Employees Working from Home
Microsoft Teams: Measuring Activity of Employees Working from HomeMicrosoft Teams: Measuring Activity of Employees Working from Home
Microsoft Teams: Measuring Activity of Employees Working from Home
 
Securing Teams with Microsoft 365 Security for Remote Work
Securing Teams with Microsoft 365 Security for Remote WorkSecuring Teams with Microsoft 365 Security for Remote Work
Securing Teams with Microsoft 365 Security for Remote Work
 
Infrastructure Best Practices for Teams Remote Workers
Infrastructure Best Practices for Teams Remote WorkersInfrastructure Best Practices for Teams Remote Workers
Infrastructure Best Practices for Teams Remote Workers
 
Accelerate Adoption for Microsoft Teams
Accelerate Adoption for Microsoft TeamsAccelerate Adoption for Microsoft Teams
Accelerate Adoption for Microsoft Teams
 
Preparing for Project Cortex and the Future of Knowledge Management
Preparing for Project Cortex and the Future of Knowledge ManagementPreparing for Project Cortex and the Future of Knowledge Management
Preparing for Project Cortex and the Future of Knowledge Management
 
Utilizing Microsoft 365 Security for Remote Work
Utilizing Microsoft 365 Security for Remote Work Utilizing Microsoft 365 Security for Remote Work
Utilizing Microsoft 365 Security for Remote Work
 
Crisis Management & Remote Work w/ Microsoft 365
Crisis Management & Remote Work w/ Microsoft 365Crisis Management & Remote Work w/ Microsoft 365
Crisis Management & Remote Work w/ Microsoft 365
 
Cancer Center’s Forward-Looking Rolling Forecast with Oracle Cloud
Cancer Center’s Forward-Looking Rolling Forecast with Oracle CloudCancer Center’s Forward-Looking Rolling Forecast with Oracle Cloud
Cancer Center’s Forward-Looking Rolling Forecast with Oracle Cloud
 
Eric Enge and Jay Baer: Key Factors for Delivering Seamless UX
Eric Enge and Jay Baer: Key Factors for Delivering Seamless UXEric Enge and Jay Baer: Key Factors for Delivering Seamless UX
Eric Enge and Jay Baer: Key Factors for Delivering Seamless UX
 

Último

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

Administration of SharePoint 2010 through PowerShell Information Technology

  • 1. ADMINISTRATION OF SHAREPOINT 2010 THROUGH POWERSHELL INFORMATION TECHNOLOGY - 300 Suzanne George Perficient
  • 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
  • 6. INSTALLING SHAREPOINT – PREP • Create/Edit Powershell Profile > Test-path $profile > New-item –type file –force $profile > Notepad $profile > Set-ExecutionPolicy RemoteSigned -add line: Add-PsSnapin Microsoft.SharePoint.Powershell > . $profile • Install Pre-requisites – use /h parameter to get argument options > Write-Output "Installing ADONETDataServices" > Start-Process "$folderADONETDataServices_v15_CTP2_RuntimeOnly.exe" -Wait -ArgumentList " /q“ > Write-Output "Installing PowerGUI" > Start-Process "$folderPowerGUI.msi" -Wait -ArgumentList " /quiet /qb /liwe $logfolder-powerguiwindo.log /norestart" • Check registry $regkey = "HKLM:SOFTWAREMicrosoftMSSQLServerClientConnectTo" $exists = Get-ItemProperty -Path $regkey -Name $databaseServerName -ErrorAction SilentlyContinue $regkey = "HKLM:SystemCurrentControlSetControlLsa" $name = "DisableLoopbackCheck" $exists = Get-ItemProperty -Path "$regkey" -Name "$name" -ErrorAction SilentlyContinue 6
  • 7. INSTALLING SHAREPOINT • Install SharePoint – Config.Xml - http://technet.microsoft.com/en-us/library/cc261668.aspx, http://blogs.msdn.com/b/ekraus/archive/2009/11/20/automated-sharepoint-2010- install-with-powershell.aspx $config = "sharepointInstall_config.xml" $bits = "e:" cls Write-Progress -Activity "Installing SharePoint Quietly" -Status "Copying config file locally" Copy-Item $config -Destination $bits Write-Progress -Activity "Installing SharePoint Quietly" -Status "Installing SharePoint" cmd.exe /C "$bitssetup.exe /config $config" PS C:sharepointScript> .Install-SharePoint.ps1 • 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 if (-not $?) { throw "Script error." } 7
  • 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!
  • 13. SUMMARY • Installing SharePoint • Configuring Services • Advanced Configuration • Powershell Scripts 13
  • 14. THANK YOU! For further information, please contact: Suzanne George Suzanne.George@perficient.com Sr. Architect Perficient - Microsoft West Region Twitter: spgenie 14