Showing posts with label site. Show all posts
Showing posts with label site. Show all posts

Monday, July 17, 2017

Web Application vs Site Collection vs Site

SharePoint 2016/2013/2010

UPDATES:

Search Configuration is done at both at Site and Site Collection level

Farm Settings – SPFarm

Max Database 500
Farm Administration
Email Settings

Web Application Settings – SPWebApplication

https://technet.microsoft.com/en-us/library/cc261978(v=office.16).aspx

http://technet.microsoft.com/en-us/library/cc287691.aspx (2010)

NOT RECOMMENDED!!! Shredded Storage can be disabled and re-enabled per Web Application
Recycle Bin: per Web App.  How long items are deleted from user bins and Second Stage recycle bin size.
Maximum Upload Size: per Web Application.
Authentication Provider:  Choose up to 5 zones

Define Managed Paths: per web application only.
Enable Self Service Site Creation: per web application level.
Blocked File Types: per Web Application

List Throttling: per Web Application
Service Application Association
Dedicated Add-in or App Settings
Email Settings


Site Collection – SPSite

https://technet.microsoft.com/en-us/library/ff607925(v=office.16).aspx

http://technet.microsoft.com/en-us/library/ff607786.aspx (2010)
Recycle Bin: Dedicated Recycle Bin for the site collection
Dedicated usage reports: Usage reports work on the site collection level.
Dedicated Administration: Site Collection Administrators

http://technet.microsoft.com/en-us/library/cc263199.aspx#architecture
Search Configuration: Configurable search scopes, keywords and best bets
Galleries: Galleries for libraries, images and styles
Site Quota templates: All sites within a site collection contribute to the quota.
Dedicated Database: Recommended due to improved DR and smallest unit to allow/restore with full fidelity restore
Permissions: Permissions are not inherited from another site
Considered a “Security Boundary”
URL Character Limit 150 (2016 to remove but remains)

Site - SPWeb

https://technet.microsoft.com/en-us/library/ff607925(v=office.16).aspx

http://technet.microsoft.com/en-us/library/ff607786.aspx (2010)
Administration: Needs to be controlled from Site Collection Admin
Site Features: Features particular to your site
MDS:Minimal Download Strategy
Navigation: Inherit navigation from parent site
Permissions: Inherit permissions from Site Collection
Sharing: Share and consume list data from other sites in same site collection
Themes: Themes are site specific
URL Character Limit 255 (2016 to remove but remains)

References

Plan Site/Site Collections – TechNet - 2016

https://technet.microsoft.com/en-us/library/cc263267(v=office.16).aspx

Design Checklists/Worksheets – 2013 or 2010

http://technet.microsoft.com/en-us/library/cc262451.aspx (2013)

http://nikpatel.net/2012/03/11/checklist-for-designing-and-implementing-sharepoint-2010-extranets-things-to-consider/

http://www.sharepointgeoff.com/implementation-checklist/

Thursday, April 6, 2017

Moving a SharePoint Site

Moving a site in SharePoint can be tricky.  There are several methods to try out.

Content and Structure or Template Create/ Use Method

http://sharepointmaven.com/how-to-move-sites-in-sharepoint/

Export / Import Method

https://technet.microsoft.com/en-us/library/ee428301(v=office.16).aspx

Backup / Restore Method

https://technet.microsoft.com/en-us/library/ee748655(v=office.16).aspx

Template Method

If it is a simple site you might be able to create a template using content and then just create site with the new template with content. 

Moving a Site in Office 365

http://sharepoint.stackexchange.com/questions/180402/move-or-copy-a-o365-sharepoint-subsite

Moving a Site in SharePoint 2016

PowerShell to Copy site with content to another site collection

http://sharepoint.stackexchange.com/questions/145668/copy-site-with-content-to-another-site-collection

Moving SharePoint subsite to root of site collection using Deployment API

http://stackoverflow.com/questions/38130966/moving-sharepoint-subsite-to-root-of-site-collection-using-deployment-api

Rename Site Collection

https://social.technet.microsoft.com/wiki/contents/articles/34032.sharepoint-2016-rename-site-collection-url-best-practice.aspx

Rename a Site
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=372

Friday, June 26, 2015

Create Site Collections via PowerShell

2013

Renaming Site Collections

$site = Get-SPSite http://portal.contoso.com/sites/demo
$uri = New-Object System.Uri("http://demo.contoso.com")
$site.Rename($uri)

Thx Todd - How to Rename SharePoint 2013 Site Collections Without Prayer or Sobbing

Host Named Site Collections

So the future for Microsoft is to use Host Named Site Collections and since we have no GUI, my challenge has been to script this via PowerShell.  But many examples on the web have come up short and since I have been real busy this project has been put on the back burner.  Finally!

For my students, I am using 20331 Lab 8 but you can use any SharePoint farm, but you will need to modify the IP address and domain names as needed

http://thecloudengineer.blogspot.com/2014/09/creating-host-name-site-collection-via.html

2010 Archive

How do you create multiple site collections via PowerShell?

The following script allows you to create a site collection with a dedicated content db and url.

First you set an array with the site collection names, then add managed path, content db and site collections for each url in the array.

$a = ("Engineering", "Sales")
ForEach($url in $a)
{
New-SPManagedPath -relativeurl /$url -webapplication http://intranet.contoso.com -explicit

New-SPContentDatabase -Name WSS_Content_Intranet_$url -WebApplication http://intranet.contoso.com

New-SPSite -Url http://intranet.contoso.com/$url -ContentDatabase WSS_Content_Intranet_$url -OwnerAlias CONTOSO\SP_Admin -Template "STS#0"
}

Special Site Collections
 
Hosted Named Site Collections (great article)
http://blogs.msdn.com/b/kaevans/archive/2012/03/27/what-every-sharepoint-admin-needs-to-know-about-host-named-site-collections.aspx

http://blogs.msdn.com/b/markarend/archive/2012/05/30/host-named-site-collections-hnsc-for-sharepoint-2010-architects.aspx (scripts confirmed)

How to Create Host Named Site Collections (I found some good code samples and reposted below in case of site deletion) Note you need to add the DNS entries for both.

http://mshorrosh.blogspot.com/2014/02/quick-guide-to-implementing-host-name.html

   1:  #"Add SharePoint Cmdlets"
   2:  add-pssnapin microsoft.sharepoint.powershell
   3:   
   4:  # Web App Variables
   5:  $WebAppDefault = "SharePoint - HSNC Example"
   6:  $Port = "80"
   7:  $AppPool = "HSNCAppPool"
   8:  $Account = "domain\svc-apppoolaccount"
   9:   
  10:  # Root Site Variables'
  11:  $RootHHDefault = "myrootsite.com"
  12:  $RootURLDefault = "http://myrootsite.com"
  13:  $Owner = "domain\svc-farmaccount"
  14:  $RootDB = "RootDB"
  15:  $Lang = "1033"
  16:  $Template = "blankinternetcontainer#0"
  17:   
  18:  # HSNC Site Variables
  19:  $HNSCSITE1 = "http://hnsc1.com"
  20:  $HNSCSITE2 = "http://hnsc2.com"
  21:   
  22:  # Create Web App
  23:  New-SPWebApplication -Name $WebAppDefault -hostHeader $RootHHDefault -Port $port -ApplicationPool $AppPool -ApplicationPoolAccount (Get-SPManagedAccount $Account) -AuthenticationProvider (New-SPAuthenticationProvider –UseWindowsIntegratedAuthentication) -DatabaseName $RootDB -AllowAnonymousAccess
  24:  echo "Web App created"
  25:   
  26:  # Create Root Site Collection 
  27:  New-SPSite $RootURLDefault -Name 'Root Site' -Description 'External Root Site Collection' -OwnerAlias $Owner -language $Lang -Template $Template
  28:  echo "Root Site Collection created"
  29:   
  30:  # Create HNSC 1
  31:  New-SPSite $HNSCSITE1 -HostHeaderWebApplication (get-spwebapplication $RootURLDefault) -Name 'Site 1' -Description 'HNSC Site1' -OwnerAlias $Owner -language $Lang -Template $template
  32:  echo "HNSC 1 Site Collection created"
  33:   
  34:  # Create HNSC 2
  35:  New-SPSite $HNSCSITE2 -HostHeaderWebApplication (get-spwebapplication $RootURLDefault) -Name 'Site 2' -Description 'HNSC Site2' -OwnerAlias $Owner -language $Lang -Template $template
  36:  echo "HNSC 2 Site Collection created"






http://www.sharepointdiary.com/2014/06/create-host-named-site-collections-in-sharepoint-2013.html



image



   1:  Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
   2:  #Set variables for New web application creation
   3:  $WebAppName = "HNSC Host Web Application"
   4:  #Variables for new Application Pool
   5:  $AppPoolName = "HNSC App Pool"
   6:  #Get the existing Managed Account
   7:  $AppPoolAccount = Get-SPManagedAccount "Crescent\SvcAppPool"
   8:  #To utilize existing AppPool, Use: Get-SPServiceApplicationPool <AppPoolName>
   9:  $ContentDatabase = "SP13_HNSC_Content"
  10:  $AuthProvider = New-SPAuthenticationProvider –UseWindowsIntegratedAuthentication
  11:  #Create the web application
  12:  $WebApp = New-SPWebApplication -ApplicationPool $AppPoolName -ApplicationPoolAccount $AppPoolAccount 
 

 

   1:  $ServerName = "http://G1WFE01"
   2:  New-SPSite -URL $ServerName -Name "HNSC Root" -OwnerAlias "Global\SvcOwner"
 






   1:  $HostURL = "http://WFE01"
   2:  $OwnerID = "Crescent\Support"
   3:  $OwnerMail= "Support@Crescent.com"
   4:  $SiteURL = "http://sales.crescent.com"
   5:  $TemplateVal ="sts#0" #Team Site
   6:  #Create the HNSC
   7:  New-SPSite -url $SiteURL -HostHeaderWebApplication $HostURL -owneralias $OwnerID -owneremail $OwnerMail -Template $TemplateVal










 
Unlike SharePoint 2010, SharePoint 2013 allows managed paths in host named site collections. Here is how: Create a new managed path "teams"


 










   1:  New-SPManagedPath "Teams" –Hostheader

 

 

 

   1:  $HostURL = "http://WFE01"
   2:  $OwnerID = "Crescent\Salaudeen"
   3:  $OwnerMail= "Support@Crescent.com"
   4:  $SiteURL = "http://Sales.crescent.com/teams/cloud"
   5:  $SiteName = "Clould Sales Team"
   6:  $TemplateVal ="sts#0"
   7:  #Get the Host named site collection by its name
   8:  $webApp = Get-SPWebApplication $HostURL
   9:  #Create new Host-named site under the managed path
  10:  New-SPSite $SiteURL -OwnerAlias $OwnerID -HostHeaderWebApplication $webApp -Name $SiteName -Template $TemplateVal

Tuesday, December 2, 2014

Moving Files using Site Content and Structure

UPDATE
Check out this codeplex tool before buy expensive third party tools
https://spdeploymentwizard.codeplex.com/
Use PowerShell

export-spweb http://site -itemurl "Library" -includeusersecurity -includeversions all –path d:\datafolder\library.cmp

Moving Files – Just use the OOTB tools like Content and Structure

http://office.microsoft.com/en-us/sharepoint-server-help/work-with-site-content-and-structure-HA010131723.aspx

from Microsoft you can ... You can move individual list items or entire subsites to another subsite within the site collection. A subsite can be moved to be directly under the top level in the site collection hierarchy or under another subsite in the site collection hierarchy. When you move a subsite, all of the content in the subsite is moved. However, you cannot move only a list (for example, only the Documents library) to another subsite. ...

also if you are a site owner in two sites in the same site collection you can move items

http://info.akgroup.com/blog-0/bid/70665/Moving-a-large-SharePoint-2007-list-or-library-with-Metadata-Part-1-of-3

Note:

You need to have the following features activated.

Site collection features - Office SharePoint Server Publishing Infrastructure

Site Feature (on the specific site) - Office SharePoint Server Publishing

Tuesday, December 13, 2011

SharePoint Operations

Great TechNet link for SharePoint Operations
http://technet.microsoft.com/en-us/library/cc288772.aspx

  • Server and server farm administration (SharePoint Foundation 2010)

    This section describes how to maintain servers and server farms within a SharePoint Foundation 2010 environment. It includes articles about backup and recovery, managing databases, Web application management, service application management, health and monitoring, and security and permissions administration.
  • Site and solution administration (SharePoint Foundation 2010)

    This section describes how to maintain sites and solutions within a SharePoint Foundation 2010 environment. It includes articles about managing site collections, service applications and services, features such as workflow, and sandboxed solutions.