This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) | |
{ | |
#Add SharePoint PowerShell Commands | |
Add-PSSnapin "Microsoft.SharePoint.PowerShell" | |
} | |
$DatabaseServerName = "SQL2016" | |
$AppPoolName = "Default SharePoint Service App Pool" | |
$AppPoolUserName = "CFCODE2016\SP_Services" | |
$AppDomain = "cfapps.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$applicationPool = "SharePoint - HNSC - 11111" | |
$ServiceAcct = "cfcode2016\SP_Content" | |
$WebApp = "SharePoint HNSC Web Application" | |
$contentDB = "SP_HNSC_ContentDB" | |
New-SPWebApplication -ApplicationPool $applicationPool -ApplicationPoolAccount $serviceAcct -Name $WebApp -Port 11111 -AuthenticationProvider (new-spauthenticationprovider) -databaseName $contentDB -secureSocketsLayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-SPSite -Url "https://hnsc.cfcode2016.com:11111" -OwnerAlias "cfcode2016\SP_Setup" -Template STS#1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$devdb = “SP_DEVDB” | |
$intranetdb = “SP_IntranetDB” | |
$webApp = “SharePoint HNSC Web Application” | |
#Build Databases | |
new-SPContentDatabase -Name $devdb -WebApplication $WebApp -WarningSiteCount 0 -MaxSiteCount 1 | |
new-SPContentDatabase -Name $intranetdb -WebApplication $WebApp -WarningSiteCount 0 -MaxSiteCount 1 | |
$hnsc = Get-SPWebApplication | Where-Object {$_.DisplayName -eq $webApp} | |
New-SPSite -Name “CF Development” -Url https://dev.cfcode2016.com –HostHeaderWebApplication $hnsc -OwnerAlias “cfcode2016\SP_Setup” -Template “DEV#0” -contentDatabase $devdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-SPWebApplicationAppDomain -AppDomain "cfapps.com" -WebApplication "https://intranet.cfcode2016.com" -Zone Default -Port 11111 -SecureSocketsLayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService | |
$contentService.SupportMultipleAppDomains = $true | |
$contentService.Update(); | |
IIsreset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) | |
{ | |
#Add SharePoint PowerShell Commands | |
Add-PSSnapin "Microsoft.SharePoint.PowerShell" | |
} | |
#Variables | |
$DatabaseServerName = "SQL2016" | |
$AppPoolName = "Default SharePoint Service App Pool" | |
$AppPoolUserName = "CFCODE2016\SP_Services" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$regKeyPath = "HKLM:\System\CurrentControlSet\Control\Lsa" | |
$key = "DisableLoopbackCheck" | |
New-ItemProperty –Path $regKeyPath –Name $key –Value "1" –PropertyType dword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Register-SPWorkflowService -SPSite "https://intranet.cfcode2016.com" -WorkflowHostUri "https://cfsp2016.cfcode2016.com:12290" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Security; | |
using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; | |
using OfficeDevPnP.Core.Framework.Provisioning.Model; | |
using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; | |
using Microsoft.SharePoint.Client; |
OlderNewer