Avoiding Administrator Blunders

          Scott Hoag and Dan Usher
#FEDSPUG #Blunders
who am I?




#FEDSPUG #Blunders
who’s that other guy?
                     Dan
                     Usher

                     usher




#FEDSPUG #Blunders
#FEDSPUG #Blunders
about you




#FEDSPUG #Blunders
rules of the road




#FEDSPUG #Blunders
#FEDSPUG #Blunders
creating orphans




#FEDSPUG #Blunders
permissions management

                                                 Permissions…



                                            Permissions!


                             Permissions!
                             Permissions!
                             Permissions!




#FEDSPUG #Blunders
publish




#FEDSPUG #Blunders
the recycle bin




#FEDSPUG #Blunders         Manage the Recycle Bin of a site
testing workflows as a deity




       > stsadm –o setproperty –pn declarativeworkflowautostartonemailenabled –pv true




#FEDSPUG #Blunders                                                   declarativeworkflowautostartonemailenabled (Property
deleting the wrong item




#FEDSPUG #Blunders
#FEDSPUG #Blunders
tune your analytics




                     Dataset Characteristics   Value
                     SharePoint components     30k
                     Unique users              117k
                     Unique queries            68k
                     Unique assets             500k
                     Reporting DB data size?   511TB per years
                                               73TB per 7day
                                               200GB for year




#FEDSPUG #Blunders                                   Capacity requirements for the Web Analytics Shared Service in SharePoint
permissive file handling



          > $webApp = Get-SPWebApplication("http://intranet.contoso.com")
          > $webApp.AllowedInlineDownloadMimeTypes.Add("application/pdf")
          > $webApp.Update()




#FEDSPUG #Blunders
running in circles




               KB896861




#FEDSPUG #Blunders            DisableLoopbackCheck & SharePoint: What every admin and developer should
pausing IIS




#FEDSPUG #Blunders
lost passphrases

        > $passphrase = ConvertTo-SecureString -asPlainText -Force
        > Set-SPPassPhrase -PassPhrase $passphrase -Confirm




                     TechNet
                     CodePlex




#FEDSPUG #Blunders
certificate revocation list
          <psuedocode>
              if (!server.HasInternetConnectivity()) {
                  server.DisableCRLCheck();
              }
          </psuedocode>




          SOFTWAREMicrosoftWindowsCurrentVersionWinTrustTrust ProvidersSoftware Publishing




#FEDSPUG #Blunders                                                                  Certificate Revocation List Check and SharePoint 2010 without an Internet
#FEDSPUG #Blunders
not enough service accounts




#FEDSPUG #Blunders
primary service accounts
          Account         Purpose                                  Requirements
          SQL Server      Runs SQL Server                          • Domain user account
                                                                   • No rights in SharePoint
          Setup Account   Installs the bits and performs initial   • Domain user account
                          configuration                            • Member of Local Admins on each server
                                                                     in the farm
                                                                   • securityadmin and dbcreator on SQL
                                                                     instance
          Farm Account    Used for configuring and managing        • Domain account
                          the farm and runs primary services       • Additional rights are automatically
                          (e.g. SPTimerV4)                           granted as part of installation (both
                                                                     server and SQL)




#FEDSPUG #Blunders
other service accounts
          Account               Purpose                                Requirements
          MySites Application Worker process identity for MySites      • Domain user account
          Pool                                                         • Managed account
          Content Application Worker process identity for Content      • Domain user account
          Pool                web applications                         • Managed account
          Services              Worker process identity for Service    • Domain account
          Application Pool      Application Pools                      • Managed account
          Search Service        Process identity for SharePoint        • Domain account
          Process               Foundation (Help) search service       • Managed account
                                and SharePoint Search service
          Search Service        Used to crawl content specified in     • Domain account
          Default Content       content sources
          Access
          User Profile Import   Account used to import (and            • Domain account
          Account               optionally export) user data from an   • Replicate Directory Changes in AD
                                identity store
#FEDSPUG #Blunders
still more service accounts
          Account        Purpose                               Requirements
          Object Cache   Processes items in the object cache   • Domain user account
          Super User     of a web application                  • Managed account
                                                               • Full Control User Policy on target web
                                                                 application(s)
          Object Cache   Processes items in the object cache   • Domain user account
          Super Reader   of a web application                  • Managed account
                                                               • Full Read User Policy on target web
                                                                 application(s)




#FEDSPUG #Blunders
running the farm configuration wizard




#FEDSPUG #Blunders
#FEDSPUG #Blunders
sandboxed solutions…




                 HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTRPC


                 HKEY_USERSAccountSIDSOFTWAREMicrosoftWindowsCurrentVersionWinTrustTrust
                 ProvidersSoftwarePublishing


#FEDSPUG #Blunders
managing managed paths




#FEDSPUG #Blunders
trim your (audit) logs




                 > stsadm -o trimauditlog –date 20120502 –databasename SP2010_Content_FEDSPUG


#FEDSPUG #Blunders
#FEDSPUG #Blunders
questions




#FEDSPUG #Blunders
find us

                            @ciphertxt                 @usher
                                                      dan@spdan.com
                     scott.hoag@appliedis.com        http://www.spdan.com
                           http://www.psconfig.com




#FEDSPUG #Blunders

SharePoint 2010 - Tips and Tricks of the Trade - Avoiding Administrative Blunders

  • 1.
    Avoiding Administrator Blunders Scott Hoag and Dan Usher #FEDSPUG #Blunders
  • 2.
  • 3.
    who’s that otherguy? Dan Usher usher #FEDSPUG #Blunders
  • 4.
  • 5.
  • 6.
    rules of theroad #FEDSPUG #Blunders
  • 7.
  • 8.
  • 9.
    permissions management Permissions… Permissions! Permissions! Permissions! Permissions! #FEDSPUG #Blunders
  • 10.
  • 11.
    the recycle bin #FEDSPUG#Blunders Manage the Recycle Bin of a site
  • 12.
    testing workflows asa deity > stsadm –o setproperty –pn declarativeworkflowautostartonemailenabled –pv true #FEDSPUG #Blunders declarativeworkflowautostartonemailenabled (Property
  • 13.
    deleting the wrongitem #FEDSPUG #Blunders
  • 14.
  • 15.
    tune your analytics Dataset Characteristics Value SharePoint components 30k Unique users 117k Unique queries 68k Unique assets 500k Reporting DB data size? 511TB per years 73TB per 7day 200GB for year #FEDSPUG #Blunders Capacity requirements for the Web Analytics Shared Service in SharePoint
  • 16.
    permissive file handling > $webApp = Get-SPWebApplication("http://intranet.contoso.com") > $webApp.AllowedInlineDownloadMimeTypes.Add("application/pdf") > $webApp.Update() #FEDSPUG #Blunders
  • 17.
    running in circles KB896861 #FEDSPUG #Blunders DisableLoopbackCheck & SharePoint: What every admin and developer should
  • 18.
  • 19.
    lost passphrases > $passphrase = ConvertTo-SecureString -asPlainText -Force > Set-SPPassPhrase -PassPhrase $passphrase -Confirm TechNet CodePlex #FEDSPUG #Blunders
  • 20.
    certificate revocation list <psuedocode> if (!server.HasInternetConnectivity()) { server.DisableCRLCheck(); } </psuedocode> SOFTWAREMicrosoftWindowsCurrentVersionWinTrustTrust ProvidersSoftware Publishing #FEDSPUG #Blunders Certificate Revocation List Check and SharePoint 2010 without an Internet
  • 21.
  • 22.
    not enough serviceaccounts #FEDSPUG #Blunders
  • 23.
    primary service accounts Account Purpose Requirements SQL Server Runs SQL Server • Domain user account • No rights in SharePoint Setup Account Installs the bits and performs initial • Domain user account configuration • Member of Local Admins on each server in the farm • securityadmin and dbcreator on SQL instance Farm Account Used for configuring and managing • Domain account the farm and runs primary services • Additional rights are automatically (e.g. SPTimerV4) granted as part of installation (both server and SQL) #FEDSPUG #Blunders
  • 24.
    other service accounts Account Purpose Requirements MySites Application Worker process identity for MySites • Domain user account Pool • Managed account Content Application Worker process identity for Content • Domain user account Pool web applications • Managed account Services Worker process identity for Service • Domain account Application Pool Application Pools • Managed account Search Service Process identity for SharePoint • Domain account Process Foundation (Help) search service • Managed account and SharePoint Search service Search Service Used to crawl content specified in • Domain account Default Content content sources Access User Profile Import Account used to import (and • Domain account Account optionally export) user data from an • Replicate Directory Changes in AD identity store #FEDSPUG #Blunders
  • 25.
    still more serviceaccounts Account Purpose Requirements Object Cache Processes items in the object cache • Domain user account Super User of a web application • Managed account • Full Control User Policy on target web application(s) Object Cache Processes items in the object cache • Domain user account Super Reader of a web application • Managed account • Full Read User Policy on target web application(s) #FEDSPUG #Blunders
  • 26.
    running the farmconfiguration wizard #FEDSPUG #Blunders
  • 27.
  • 28.
    sandboxed solutions… HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTRPC HKEY_USERSAccountSIDSOFTWAREMicrosoftWindowsCurrentVersionWinTrustTrust ProvidersSoftwarePublishing #FEDSPUG #Blunders
  • 29.
  • 30.
    trim your (audit)logs > stsadm -o trimauditlog –date 20120502 –databasename SP2010_Content_FEDSPUG #FEDSPUG #Blunders
  • 31.
  • 32.
  • 33.
    find us @ciphertxt @usher dan@spdan.com scott.hoag@appliedis.com http://www.spdan.com http://www.psconfig.com #FEDSPUG #Blunders

Editor's Notes

  • #31 The trimauditlog command was introduced in the Infrastructure Update