├── README.md ├── CreateSite ├── modules │ ├── sppnp.ico │ ├── AngleSharp.dll │ ├── Microsoft.Graph.dll │ ├── Newtonsoft.Json.dll │ ├── System.Web.Http.dll │ ├── OfficeDevPnP.Core.dll │ ├── Microsoft.Data.Edm.dll │ ├── Microsoft.Data.OData.dll │ ├── Microsoft.Graph.Core.dll │ ├── Microsoft.Identity.Client.dll │ ├── Microsoft.IdentityModel.dll │ ├── System.Text.Encodings.Web.dll │ ├── Microsoft.SharePoint.Client.dll │ ├── System.Net.Http.Formatting.dll │ ├── Microsoft.ApplicationInsights.dll │ ├── Microsoft.Extensions.Options.dll │ ├── Microsoft.IdentityModel.Tokens.dll │ ├── Microsoft.Office.Client.Policy.dll │ ├── Microsoft.WindowsAzure.Storage.dll │ ├── Microsoft.Extensions.Primitives.dll │ ├── Microsoft.Extensions.WebEncoders.dll │ ├── Microsoft.IdentityModel.Logging.dll │ ├── System.IdentityModel.Tokens.Jwt.dll │ ├── Microsoft.Identity.Client.Platform.dll │ ├── Microsoft.SharePoint.Client.Runtime.dll │ ├── Microsoft.SharePoint.Client.Search.dll │ ├── System.Diagnostics.DiagnosticSource.dll │ ├── Microsoft.IdentityModel.JsonWebTokens.dll │ ├── Microsoft.SharePoint.Client.Taxonomy.dll │ ├── Microsoft.SharePoint.Client.Publishing.dll │ ├── Microsoft.SharePoint.Client.UserProfiles.dll │ ├── SharePointPnP.IdentityModel.Extensions.dll │ ├── SharePointPnP.PowerShell.Online.Commands.dll │ ├── Microsoft.Online.SharePoint.Client.Tenant.dll │ ├── Microsoft.Office.Client.TranslationServices.dll │ ├── Microsoft.SharePoint.Client.WorkflowServices.dll │ ├── SharePointPnP.PowerShell.CmdletHelpAttributes.dll │ ├── Microsoft.IdentityModel.Clients.ActiveDirectory.dll │ ├── Microsoft.SharePoint.Client.DocumentManagement.dll │ ├── Microsoft.SharePoint.Client.Search.Applications.dll │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ ├── Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll │ └── SharePointPnPPowerShellOnline.psd1 ├── APIDefinition.txt └── run.ps1 ├── CreateEUMGroups ├── IdentityModel.dll ├── Newtonsoft.Json.dll ├── System.ValueTuple.dll └── run.ps1 ├── UpdateSitesList ├── modules │ ├── sppnp.ico │ ├── AngleSharp.dll │ ├── Microsoft.Graph.dll │ ├── Newtonsoft.Json.dll │ ├── System.Web.Http.dll │ ├── OfficeDevPnP.Core.dll │ ├── Microsoft.Data.Edm.dll │ ├── Microsoft.Data.OData.dll │ ├── Microsoft.Graph.Core.dll │ ├── Microsoft.Identity.Client.dll │ ├── Microsoft.IdentityModel.dll │ ├── System.Text.Encodings.Web.dll │ ├── Microsoft.SharePoint.Client.dll │ ├── System.Net.Http.Formatting.dll │ ├── Microsoft.ApplicationInsights.dll │ ├── Microsoft.Extensions.Options.dll │ ├── Microsoft.IdentityModel.Tokens.dll │ ├── Microsoft.Office.Client.Policy.dll │ ├── Microsoft.WindowsAzure.Storage.dll │ ├── Microsoft.Extensions.Primitives.dll │ ├── Microsoft.Extensions.WebEncoders.dll │ ├── Microsoft.IdentityModel.Logging.dll │ ├── System.IdentityModel.Tokens.Jwt.dll │ ├── Microsoft.Identity.Client.Platform.dll │ ├── Microsoft.SharePoint.Client.Runtime.dll │ ├── Microsoft.SharePoint.Client.Search.dll │ ├── System.Diagnostics.DiagnosticSource.dll │ ├── Microsoft.IdentityModel.JsonWebTokens.dll │ ├── Microsoft.SharePoint.Client.Taxonomy.dll │ ├── Microsoft.SharePoint.Client.Publishing.dll │ ├── Microsoft.SharePoint.Client.UserProfiles.dll │ ├── SharePointPnP.IdentityModel.Extensions.dll │ ├── SharePointPnP.PowerShell.Online.Commands.dll │ ├── Microsoft.Online.SharePoint.Client.Tenant.dll │ ├── Microsoft.Office.Client.TranslationServices.dll │ ├── Microsoft.SharePoint.Client.WorkflowServices.dll │ ├── SharePointPnP.PowerShell.CmdletHelpAttributes.dll │ ├── Microsoft.IdentityModel.Clients.ActiveDirectory.dll │ ├── Microsoft.SharePoint.Client.DocumentManagement.dll │ ├── Microsoft.SharePoint.Client.Search.Applications.dll │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ ├── Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll │ └── SharePointPnPPowerShellOnline.psd1 └── run.ps1 ├── .gitignore ├── CreateList ├── EUMSites_CreateList.ps1 └── EUMSites.DeployTemplate.xml ├── ApplySiteTemplate └── ApplySiteTemplate.ps1 ├── CreateSiteTemplate └── CreateSiteTemplate.ps1 ├── sharepoint.config ├── masthead.ps1 ├── EUMSites_Helper.ps1 ├── SiteTemplates └── Client-Template-Template.xml └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # eum-sites -------------------------------------------------------------------------------- /CreateSite/modules/sppnp.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/sppnp.ico -------------------------------------------------------------------------------- /CreateEUMGroups/IdentityModel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateEUMGroups/IdentityModel.dll -------------------------------------------------------------------------------- /CreateSite/modules/AngleSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/AngleSharp.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/sppnp.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/sppnp.ico -------------------------------------------------------------------------------- /CreateEUMGroups/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateEUMGroups/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /CreateEUMGroups/System.ValueTuple.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateEUMGroups/System.ValueTuple.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Graph.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Graph.dll -------------------------------------------------------------------------------- /CreateSite/modules/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /CreateSite/modules/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/System.Web.Http.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/AngleSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/AngleSharp.dll -------------------------------------------------------------------------------- /CreateSite/modules/OfficeDevPnP.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/OfficeDevPnP.Core.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Data.Edm.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Data.Edm.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Data.OData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Data.OData.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Graph.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Graph.Core.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Graph.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Graph.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/System.Web.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/System.Web.Http.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/OfficeDevPnP.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/OfficeDevPnP.Core.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Identity.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Identity.Client.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.IdentityModel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.IdentityModel.dll -------------------------------------------------------------------------------- /CreateSite/modules/System.Text.Encodings.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/System.Text.Encodings.Web.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Data.Edm.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Data.Edm.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Data.OData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Data.OData.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Graph.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Graph.Core.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.dll -------------------------------------------------------------------------------- /CreateSite/modules/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.IdentityModel.Tokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.IdentityModel.Tokens.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Office.Client.Policy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Office.Client.Policy.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.WindowsAzure.Storage.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.WindowsAzure.Storage.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Identity.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Identity.Client.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.IdentityModel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.IdentityModel.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/System.Text.Encodings.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/System.Text.Encodings.Web.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Extensions.WebEncoders.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Extensions.WebEncoders.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.IdentityModel.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.IdentityModel.Logging.dll -------------------------------------------------------------------------------- /CreateSite/modules/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/System.Net.Http.Formatting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/System.Net.Http.Formatting.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Identity.Client.Platform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Identity.Client.Platform.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.Runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.Runtime.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.Search.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.Search.dll -------------------------------------------------------------------------------- /CreateSite/modules/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.ApplicationInsights.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.ApplicationInsights.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.IdentityModel.Tokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.IdentityModel.Tokens.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Office.Client.Policy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Office.Client.Policy.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.WindowsAzure.Storage.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.WindowsAzure.Storage.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.IdentityModel.JsonWebTokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.IdentityModel.JsonWebTokens.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.Taxonomy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.Taxonomy.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Extensions.WebEncoders.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Extensions.WebEncoders.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.IdentityModel.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.IdentityModel.Logging.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/System.IdentityModel.Tokens.Jwt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/System.IdentityModel.Tokens.Jwt.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.Publishing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.Publishing.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.UserProfiles.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.UserProfiles.dll -------------------------------------------------------------------------------- /CreateSite/modules/SharePointPnP.IdentityModel.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/SharePointPnP.IdentityModel.Extensions.dll -------------------------------------------------------------------------------- /CreateSite/modules/SharePointPnP.PowerShell.Online.Commands.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/SharePointPnP.PowerShell.Online.Commands.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Identity.Client.Platform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Identity.Client.Platform.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.Runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.Runtime.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.Search.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.Search.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/System.Diagnostics.DiagnosticSource.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/System.Diagnostics.DiagnosticSource.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Online.SharePoint.Client.Tenant.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Online.SharePoint.Client.Tenant.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.IdentityModel.JsonWebTokens.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.IdentityModel.JsonWebTokens.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.Taxonomy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.Taxonomy.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Office.Client.TranslationServices.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Office.Client.TranslationServices.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.WorkflowServices.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.WorkflowServices.dll -------------------------------------------------------------------------------- /CreateSite/modules/SharePointPnP.PowerShell.CmdletHelpAttributes.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/SharePointPnP.PowerShell.CmdletHelpAttributes.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.Publishing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.Publishing.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.UserProfiles.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.UserProfiles.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/SharePointPnP.IdentityModel.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/SharePointPnP.IdentityModel.Extensions.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/SharePointPnP.PowerShell.Online.Commands.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/SharePointPnP.PowerShell.Online.Commands.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.DocumentManagement.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.DocumentManagement.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.SharePoint.Client.Search.Applications.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.SharePoint.Client.Search.Applications.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Online.SharePoint.Client.Tenant.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Online.SharePoint.Client.Tenant.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Office.Client.TranslationServices.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Office.Client.TranslationServices.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.WorkflowServices.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.WorkflowServices.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/SharePointPnP.PowerShell.CmdletHelpAttributes.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/SharePointPnP.PowerShell.CmdletHelpAttributes.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.DocumentManagement.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.DocumentManagement.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.SharePoint.Client.Search.Applications.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.SharePoint.Client.Search.Applications.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /CreateSite/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/CreateSite/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /UpdateSitesList/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petercarson/eum-sites/HEAD/UpdateSitesList/modules/Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # This .gitignore file was automatically created by Microsoft(R) Visual Studio. 3 | ################################################################################ 4 | 5 | /.vs/VSWorkspaceState.json 6 | /.vs/eum-sites/v15/.suo 7 | /.vs/ProjectSettings.json 8 | /.vs/slnx.sqlite 9 | -------------------------------------------------------------------------------- /CreateList/EUMSites_CreateList.ps1: -------------------------------------------------------------------------------- 1 | [string]$DistributionFolder = (Split-Path $MyInvocation.MyCommand.Path) 2 | $DistributionFolderArray = $DistributionFolder.Split('\') 3 | $DistributionFolderArray[$DistributionFolderArray.Count - 1] = "" 4 | $DistributionFolder = $DistributionFolderArray -join "\" 5 | 6 | . $DistributionFolder\EUMSites_Helper.ps1 7 | LoadEnvironmentSettings 8 | 9 | Write-Host "Connecting to "$SitesListSiteURL 10 | Connect-PnPOnline -Url $SitesListSiteURL -Credentials $SPCredentials 11 | Write-Host "Applying the EUM Sites Template to "$SitesListSiteURL 12 | Apply-PnPProvisioningTemplate -Path "$DistributionFolder\CreateList\EUMSites.DeployTemplate.xml" 13 | Disconnect-PnPOnline 14 | -------------------------------------------------------------------------------- /ApplySiteTemplate/ApplySiteTemplate.ps1: -------------------------------------------------------------------------------- 1 | [string]$DistributionFolder = $Env:distributionFolder 2 | 3 | if (-not $DistributionFolder) 4 | { 5 | $DistributionFolder = (Split-Path $MyInvocation.MyCommand.Path) 6 | $DistributionFolderArray = $DistributionFolder.Split('\') 7 | $DistributionFolderArray[$DistributionFolderArray.Count - 1] = "" 8 | $DistributionFolder = $DistributionFolderArray -join "\" 9 | } 10 | 11 | . $DistributionFolder\EUMSites_Helper.ps1 12 | LoadEnvironmentSettings 13 | 14 | [string]$SiteURL = Read-Host "Enter the URL of the site to apply the template to" 15 | 16 | Helper-Connect-PnPOnline -Url $siteURL 17 | Set-PnPTraceLog -On -Level Debug 18 | $pnpSiteTemplate = $DistributionFolder + "\SiteTemplates\Client-Template-Template.xml" 19 | Apply-PnPProvisioningTemplate -Path $pnpSiteTemplate 20 | Disconnect-PnPOnline 21 | 22 | -------------------------------------------------------------------------------- /CreateSite/APIDefinition.txt: -------------------------------------------------------------------------------- 1 | swagger: '2.0' 2 | info: 3 | title: envisionitdeveumsites.azurewebsites.net 4 | version: 1.0.0 5 | host: envisionitdeveumsites.azurewebsites.net 6 | basePath: / 7 | schemes: 8 | - https 9 | - http 10 | paths: 11 | /api/CreateSite: 12 | post: 13 | operationId: /api/CreateSite/post 14 | produces: 15 | - application/json 16 | consumes: 17 | - application/json 18 | parameters: 19 | - name: body 20 | in: body 21 | description: SharePoint Sites new list item values 22 | x-ms-summary: New Site values 23 | x-ms-visibility: important 24 | required: true 25 | schema: 26 | type: object 27 | properties: 28 | id: 29 | description: ID of the site list item 30 | type: string 31 | x-ms-summary: ID 32 | x-ms-visibility: important 33 | description: >- 34 | Replace with Operation Object 35 | #http://swagger.io/specification/#operationObject 36 | responses: 37 | '200': 38 | description: Success operation 39 | security: 40 | - apikeyQuery: [] 41 | definitions: {} 42 | securityDefinitions: 43 | apikeyQuery: 44 | type: apiKey 45 | name: code 46 | in: query 47 | -------------------------------------------------------------------------------- /CreateSiteTemplate/CreateSiteTemplate.ps1: -------------------------------------------------------------------------------- 1 | [parameter(Mandatory=$true)][string]$TemplateSiteRelativeURL, 2 | 3 | [string]$DistributionFolder = $Env:distributionFolder 4 | 5 | if ($DistributionFolder -eq "") 6 | { 7 | $DistributionFolder = (Split-Path $MyInvocation.MyCommand.Path) 8 | $DistributionFolderArray = $DistributionFolder.Split('\') 9 | $DistributionFolderArray[$DistributionFolderArray.Count - 1] = "" 10 | $DistributionFolder = $DistributionFolderArray -join "\" 11 | } 12 | 13 | . $DistributionFolder\EUMSites_Helper.ps1 14 | LoadEnvironmentSettings 15 | 16 | # ----------------------------- 17 | # Connect to the template site 18 | # ----------------------------- 19 | [string]$TemplateSiteURL = Read-Host "Enter the URL of the site to template" 20 | Helper-Connect-PnPOnline -Url $TemplateSiteURL 21 | 22 | # If a $TemplateLocalPath wasn't provided as a parameter, use the template site's title and the current local path 23 | [Microsoft.SharePoint.Client.Web]$spWeb = Get-PnPWeb 24 | 25 | [string]$spWebTitle = $spWeb.Title 26 | [string]$siteTemplateTitle = "$($spWebTitle.Replace(' ', '-'))-Template.xml" 27 | $TemplateLocalFolder = $DistributionFolder + "\SiteTemplates\" + $siteTemplateTitle 28 | 29 | # ------------------------- 30 | # Create the site template 31 | # ------------------------- 32 | Get-PnPProvisioningTemplate -out $TemplateLocalFolder -Handlers Fields, Lists, SiteSecurity, ContentTypes 33 | -------------------------------------------------------------------------------- /sharepoint.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | true 4 | false 5 | 6 | Sites 7 | 8 | 9 | 10 | /sites 11 | /teams 12 | 13 | 14 | 15 | 16 | 1 17 | Envision IT Dev 18 | 19 | https://envisionitdev.sharepoint.com 20 | /sites/Landing 21 | envisionitdev.sharepoint.com 22 | UsernamePassword 23 | 24 | 25 | 26 | 2 27 | Envision IT Dev Azure Key Vault 28 | 29 | https://envisionitdev.sharepoint.com 30 | /sites/Landing 31 | envisionitdev.sharepoint.com Azure Key Vault 32 | AzureKeyVault 33 | 64a54bf1-8d0d-4741-a2ae-36eb0bfa4c58 34 | EUMSites 35 | 36 | 37 | 38 | 3 39 | EUM Demo 40 | 41 | https://eumdemo.sharepoint.com 42 | /sites/Landing 43 | eumdemo.sharepoint.com 44 | UsernamePassword 45 | 46 | 47 | login.eumdemo.com 48 | 1 49 | 1 50 | https://login.eumdemo.com 51 | 52 | 53 | 54 | 4 55 | EUM Demo Azure Key Vault 56 | 57 | https://eumdemo.sharepoint.com 58 | /sites/Landing2 59 | eumdemo.sharepoint.com Azure Key Vault 60 | AzureKeyVault 61 | 84cd9e31-3fbf-467a-8c40-61b240c7bcb2 62 | EUMDemo-EUMSites 63 | 64 | 65 | 66 | 5 67 | Envision IT 68 | 69 | https://envisionit.sharepoint.com 70 | /sites/Landing 71 | envisionit.sharepoint.com 72 | UsernamePassword 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /UpdateSitesList/run.ps1: -------------------------------------------------------------------------------- 1 | [string]$DistributionFolder = $Env:distributionFolder 2 | 3 | if ($DistributionFolder -eq "") 4 | { 5 | $DistributionFolder = (Split-Path $MyInvocation.MyCommand.Path) 6 | $DistributionFolderArray = $DistributionFolder.Split('\') 7 | $DistributionFolderArray[$DistributionFolderArray.Count - 1] = "" 8 | $DistributionFolder = $DistributionFolderArray -join "\" 9 | } 10 | 11 | . $DistributionFolder\EUMSites_Helper.ps1 12 | LoadEnvironmentSettings 13 | 14 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 15 | 16 | # get all sites in the list that have Site Created set 17 | $siteCollectionListItems = Get-PnPListItem -List $SiteListName -Query " 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | " 37 | 38 | # ----------------------------------------- 39 | # 1. Delete all sites that no longer exist 40 | # ----------------------------------------- 41 | Write-Output "Checking $($SiteListName) for deleted sites. Please wait..." 42 | $siteCollectionListItems | ForEach { 43 | Write-Output "Checking if $($_["Title"]), URL:$($_["EUMSiteURL"].Url) still exists..." 44 | if (-not(CheckIfSiteExists -siteURL $_["EUMSiteURL"].Url -disconnect)) 45 | { 46 | Write-Output "$($_["Title"]), URL:$($_["EUMSiteURL"].Url) does not exist. Deleting from list..." 47 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 48 | Remove-PnPListItem -List $SiteListName -Identity $_.Id -Force 49 | } 50 | } 51 | 52 | # ------------------------------------------- 53 | # 2. Update existing entries 54 | # ------------------------------------------- 55 | Write-Output "Updating existing entries in $($SiteListName). Please wait..." 56 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 57 | $siteCollectionListItems = Get-PnPListItem -List $SiteListName -Query " 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | " 81 | 82 | 83 | $siteCollectionListItems | ForEach { 84 | [string]$SiteRelativeURL = ($_["EUMSiteURL"].Url).Replace($WebAppURL, "") 85 | [string]$siteTitle = $_["Title"] 86 | [string]$breadcrumbHTML = GetBreadcrumbHTML -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentURL $_["EUMParentURL"].Url 87 | 88 | $spSubWebs = GetSubWebs -siteURL "$($WebAppURL)$($SiteRelativeURL)" -disconnect 89 | 90 | Write-Output "Checking if $($_["Title"]), URL:$($_["EUMSiteURL"].Url) needs updating..." 91 | AddOrUpdateSiteEntry -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentURL $parentURL -breadcrumbHTML $breadcrumbHTML -spSubWebs $spSubWebs 92 | } 93 | 94 | # --------------------------------------------------------- 95 | # 3. Iterate through all site collections and add new ones 96 | # --------------------------------------------------------- 97 | Write-Output "Adding tenant site collections to ($SiteListName). Please wait..." 98 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 99 | $siteCollections = Get-PnPTenantSite -IncludeOneDriveSites 100 | 101 | $siteCollections | ForEach { 102 | [string]$SiteRelativeURL = ($_.Url).Replace($WebAppURL, "") 103 | [string]$siteTitle = $_.Title 104 | [string]$parentURL = "" 105 | 106 | # Exclude the default site collections 107 | if (($SiteRelativeURL.ToLower() -notlike "*/portals/community") -and 108 | ($SiteRelativeURL.ToLower() -notlike "*/portals/hub") -and 109 | ($SiteRelativeURL.ToLower() -notlike "*/sites/contenttypehub") -and 110 | ($SiteRelativeURL.ToLower() -notlike "*/search") -and 111 | ($SiteRelativeURL.ToLower() -notlike "*/sites/appcatalog") -and 112 | ($SiteRelativeURL.ToLower() -notlike "*/sites/compliancepolicycenter") -and 113 | ($SiteRelativeURL.ToLower() -notlike "*-my.sharepoint.com*") -and 114 | ($SiteRelativeURL.ToLower() -ne "/")) 115 | { 116 | [string]$parentBreadcrumbHTML = "" 117 | [string]$breadcrumbHTML = GetBreadcrumbHTML -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentBreadcrumbHTML $parentBreadcrumbHTML 118 | 119 | $spSubWebs = GetSubWebs -siteURL "$($WebAppURL)$($SiteRelativeURL)" 120 | Helper-Connect-PnPOnline -Url $_.Url 121 | [Microsoft.SharePoint.Client.Web]$spWeb = Get-PnPWeb -Includes Created 122 | [DateTime]$siteCreatedDate = $spWeb.Created.Date 123 | 124 | [string]$SiteRelativeURL = ($_.Url).Replace($WebAppURL, "") 125 | [string]$siteTitle = $_.Title 126 | Write-Output "Checking if $($_["Title"]), $($_["Url"]) needs to be added..." 127 | AddSiteEntry -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentURL $parentURL -breadcrumbHTML $breadcrumbHTML -spSubWebs $spSubWebs -siteCreatedDate $siteCreatedDate 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /CreateEUMGroups/run.ps1: -------------------------------------------------------------------------------- 1 | if ($Env:POSTMethod) 2 | { 3 | # POST method: $req 4 | $requestBody = Get-Content $req -Raw | ConvertFrom-Json 5 | $ID = $requestBody.id 6 | } 7 | 8 | [string]$DistributionFolder = $Env:distributionFolder 9 | 10 | if (-not $DistributionFolder) 11 | { 12 | $DistributionFolder = (Split-Path $MyInvocation.MyCommand.Path) 13 | $DistributionFolderArray = $DistributionFolder.Split('\') 14 | $DistributionFolderArray[$DistributionFolderArray.Count - 1] = "" 15 | $DistributionFolder = $DistributionFolderArray -join "\" 16 | } 17 | 18 | . $DistributionFolder\EUMSites_Helper.ps1 19 | LoadEnvironmentSettings 20 | 21 | if ($listItemID) 22 | { 23 | # Get the specific Site Collection List item in master site for the site that needs to be created 24 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 25 | 26 | $pendingSiteCollections = Get-PnPListItem -List $SiteListName -Query " 27 | 28 | 29 | 30 | 31 | 32 | 33 | $itemId 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | " 58 | } 59 | else 60 | { 61 | # Check the Site Collection List in master site for any sites that need to be created 62 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 63 | 64 | $pendingSiteCollections = Get-PnPListItem -List $SiteListName -Query " 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | " 92 | } 93 | 94 | if ($pendingSiteCollections.Count -gt 0) 95 | { 96 | Add-Type -path "$DistributionFolder\CreateEUMGroups\IdentityModel.dll" 97 | Add-Type -path "$DistributionFolder\CreateEUMGroups\Newtonsoft.Json.dll" 98 | Add-Type -path "$DistributionFolder\CreateEUMGroups\System.ValueTuple.dll" 99 | 100 | $disco = [IdentityModel.Client.DiscoveryClient]::GetAsync($EUMURL + "/idsrv").GetAwaiter().GetResult() 101 | if ($disco.IsError) { 102 | Write-Output $disco.Error 103 | } 104 | 105 | $tokenClient = New-Object IdentityModel.Client.TokenClient($disco.TokenEndpoint, $EUMClientID, $EUMSecret) 106 | $cancelToken = New-Object System.Threading.CancellationToken 107 | $tokenResponse = [IdentityModel.Client.TokenClientExtensions]::RequestClientCredentialsAsync($tokenClient, "extranet_api_v4", $null, $cancelToken).GetAwaiter().GetResult() 108 | 109 | if ($tokenResponse.IsError) { 110 | Write-Output $tokenResponse.Error 111 | } 112 | 113 | $client = New-Object System.Net.Http.HttpClient 114 | [System.Net.Http.HttpClientExtensions]::SetBearerToken($client, $tokenResponse.AccessToken) 115 | 116 | # Iterate through the pending sites. Create the groups if needed, and update permissions 117 | $pendingSiteCollections | ForEach { 118 | $groupCreated = $false 119 | $pendingSite = $_ 120 | 121 | $content = @{ 122 | "Domain_FK"= $Domain_FK; 123 | "RoleStatus_FK"= 1; 124 | "SystemConfiguration_FK"= $SystemConfiguration_FK; 125 | "RoleName"= $pendingSite["EUMEUMGroup"]; 126 | "AvailableForRegistration"= $true 127 | } 128 | 129 | $json = ConvertTo-Json $content 130 | $stringContent = New-Object System.Net.Http.StringContent($json, [System.Text.Encoding]::UTF8, "application/json"); 131 | $response = $client.PostAsync($EUMURL + "/_API/v4/Roles", $stringContent).GetAwaiter().GetResult() 132 | 133 | if ($response.IsSuccessStatusCode) { 134 | $content = $response.Content.ReadAsStringAsync().GetAwaiter().GetResult() 135 | $content 136 | $conv = ConvertFrom-Json($content) 137 | $conv 138 | $groupCreated = $true 139 | } 140 | else { 141 | Write-Output $response.StatusCode 142 | } 143 | 144 | if ($groupCreated) 145 | { 146 | # Set the Group Created value 147 | [Microsoft.SharePoint.Client.ListItem]$spListItem = Set-PnPListItem -List $SiteListName -Identity $pendingSite.Id -Values @{ "EUMEUMGroupCreated" = [System.DateTime]::Now } 148 | 149 | $groupName = $pendingSite["EUMEUMGroup"] 150 | 151 | # Enable external sharing 152 | Connect-PnPOnline -url ($pendingSite["EUMSiteURL"]).Url -Credentials $credentials 153 | # Possible values Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly 154 | Set-PnPTenantSite -Url ($pendingSite["EUMSiteURL"]).Url -Sharing ExternalUserAndGuestSharing 155 | 156 | # Add the appropriate permission to the site for the group 157 | Set-PnPWebPermission -User $groupName -AddRole $pendingSite["EUMEUMPermission"] 158 | 159 | switch ($eumSiteTemplate) 160 | { 161 | "Modern Client Site" 162 | { 163 | # Remove the rights to the Private Documents library 164 | $list = Get-PnPList -Identity "Private Documents" 165 | $list.BreakRoleInheritance($true, $true) 166 | 167 | Set-PnPListPermission -Identity "Private Documents" -User $groupName -RemoveRole $pendingSite["EUMEUMPermission"] 168 | } 169 | } 170 | 171 | # Update the permissions to the Site Collection List in master site to give the group read access 172 | Connect-PnPOnline -Url $SitesListSiteURL -Credentials $credentials 173 | 174 | Set-PnPListItemPermission -List $SiteListName -Identity $pendingSite["ID"] -User $groupName -AddRole "Read" 175 | } 176 | } 177 | } 178 | -------------------------------------------------------------------------------- /masthead.ps1: -------------------------------------------------------------------------------- 1 | Param( 2 | [Parameter(Mandatory = $true, Position = 1)] 3 | [string]$UserName, 4 | [Parameter(Mandatory = $true, Position = 2)] 5 | [SecureString]$Password, 6 | [Parameter(Mandatory = $true, Position = 3)] 7 | [string]$MastheadInstallerSite 8 | ) 9 | 10 | [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client") 11 | [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime") 12 | 13 | Import-Module "$DistributionFolder\CreateSite\modules\Microsoft.SharePoint.Client.dll" 14 | 15 | $ListTitle = "masthead-app-settings" 16 | $caName = "Masthead"; 17 | $caTitle = "s-masthead-spx"; 18 | $caDescription = "Masthead for sharepoint"; 19 | $caLocation = "ClientSideExtension.ApplicationCustomizer"; 20 | $caComponentId = "27b0cb87-695b-4405-ae63-9db7d67e1029" 21 | 22 | $caClassicName = "Masthead Classic"; 23 | $caClassicTitle = "masthead-classic"; 24 | $caClassicDescription = "Masthead classic action"; 25 | $caClassicLocation = "ScriptLink"; 26 | $caClassicSequence = 4884; 27 | $caClassicScriptpt1 = 'function masthedClassicRetrieve() {var request = new XMLHttpRequest();request.open("GET","'; 28 | $caClassicScriptpt2 = '/_api/lists/getbytitle(''masthead-app-settings'')/items?$filter=Title eq ''classicScript''",true);request.onreadystatechange = function(){if (request.readyState === 4 && request.status === 200){var json = JSON.parse(request.response);var script = document.createElement("script");script.type = "text/javascript";script.src = json.value[0].URL + "masthead-classic.js";document.getElementsByTagName("body")[0].appendChild(script);var link = document.createElement("link");link.type = "text/css";link.rel = "stylesheet"; link.href= json.value[0].URL + "styles.css";document.getElementsByTagName("head")[0].appendChild(link);}}; request.withCredentials = true;request.setRequestHeader("Accept", "application/json");request.send();}masthedClassicRetrieve();masthedClassicRetrieve = null;' 29 | 30 | Function Get-SPOCredentials([string]$UserName, [SecureString]$Password) { 31 | return New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $Password) 32 | } 33 | 34 | Function Get-List([Microsoft.SharePoint.Client.ClientContext]$Context, [String]$ListTitle) { 35 | $list = $context.Web.Lists.GetByTitle($ListTitle) 36 | $context.Load($list) 37 | $context.ExecuteQuery() 38 | $list 39 | } 40 | 41 | Function Get-Context-For-Site([string]$siteURL, [string]$UserName, [SecureString]$Password) { 42 | $context = New-Object Microsoft.SharePoint.Client.ClientContext($siteURL) 43 | $context.Credentials = Get-SPOCredentials -UserName $UserName -Password $Password 44 | return $context 45 | } 46 | 47 | $adminContext = Get-Context-For-Site -siteURL $MastheadInstallerSite -UserName $UserName -Password $Password 48 | 49 | Function Get-Masthead-Actions-From-Context([Microsoft.SharePoint.Client.ClientContext]$Context) { 50 | 51 | $siteActions = $Context.Site.UserCustomActions 52 | $webActions = $Context.Web.UserCustomActions 53 | 54 | $Context.Load($siteActions) 55 | $Context.Load($webActions) 56 | $Context.ExecuteQuery() 57 | 58 | $mastheadWeb = $webActions | Where-Object {$_.ClientSideComponentId -eq $caComponentId -or $_.Sequence -eq $caClassicSequence} 59 | $mastheadSite = $siteActions | Where-Object {$_.ClientSideComponentId -eq $caComponentId -or $_.Sequence -eq $caClassicSequence} 60 | 61 | if ($mastheadWeb -ne $null -And $mastheadSite -ne $null) { 62 | $mastheadWeb + $mastheadSite 63 | } 64 | if ($mastheadWeb -ne $null){ 65 | $mastheadWeb 66 | } 67 | if ($mastheadSite -ne $null) { 68 | $mastheadSite 69 | } 70 | 71 | } 72 | Function Install-To-Site([string]$TargetSite) { 73 | 74 | $siteContext = Get-Context-For-Site -siteURL $TargetSite -UserName $UserName -Password $Password 75 | 76 | $siteWeb = $siteContext.Web 77 | $siteContext.Load($siteWeb) 78 | $siteContext.ExecuteQuery() 79 | $existingActions = $siteWeb.UserCustomActions 80 | $siteContext.Load($existingActions) 81 | $siteContext.ExecuteQuery() 82 | 83 | $caMasthead = $existingActions.Add() 84 | $caMasthead.Name = $caName 85 | $caMasthead.Title = $caTitle 86 | $caMasthead.Group = "" 87 | $caMasthead.Description = $caDescription 88 | $caMasthead.Location = $caLocation 89 | $caMasthead.ClientSideComponentId = $caComponentId 90 | $caMasthead.Update() 91 | 92 | $siteContext.ExecuteQuery() 93 | 94 | Try { 95 | $caClassic = $existingActions.Add() 96 | $caClassic.Name = $caClassicName 97 | $caClassic.Title = $caClassicTitle 98 | $caClassic.Group = "" 99 | $caClassic.Description = $caClassicDescription 100 | $caClassic.Location = $caClassicLocation 101 | $caClassic.Sequence = $caClassicSequence 102 | $caClassic.ScriptBlock = $caClassicScriptpt1 + $adminContext.Url + $caClassicScriptpt2 103 | $caClassic.Update() 104 | $siteContext.ExecuteQuery() 105 | } 106 | Catch { 107 | "Error adding classic version of masthead. If you are on a modern site, this is expected." 108 | } 109 | 110 | $settingsList = Get-List -Context $adminContext -ListTitle $ListTitle 111 | $adminContext.Load($settingsList) 112 | $adminContext.ExecuteQuery(); 113 | 114 | $query = New-Object Microsoft.SharePoint.Client.CamlQuery 115 | $query.ViewXml = " 116 | 117 | " 118 | $listItems = $settingsList.GetItems($query) 119 | $adminContext.Load($listItems) 120 | $adminContext.ExecuteQuery(); 121 | 122 | $instance = $listItems | Where-Object {$_["URL"] -eq $TargetSite.ToLower()} 123 | 124 | if ($instance -eq $null) { 125 | $listItemInfo = New-Object Microsoft.SharePoint.Client.ListItemCreationInformation 126 | $mastheadURLItem = $settingsList.AddItem($listItemInfo) 127 | $mastheadURLItem["URL"] = $TargetSite.ToLower() 128 | $mastheadURLItem["Title"] = "masthead-url"; 129 | $mastheadURLItem.Update() 130 | $settingsList.Update() 131 | try { 132 | $adminContext.ExecuteQuery() 133 | } 134 | catch { 135 | "Error adding to list" 136 | } 137 | } 138 | else { 139 | "Already on list, exiting..." 140 | } 141 | } 142 | 143 | Function Uninstall-From-Site([string]$TargetSite) { 144 | 145 | $siteContext = Get-Context-For-Site -siteURL $TargetSite -UserName $UserName -Password $Password 146 | 147 | $actions = Get-Masthead-Actions-From-Context -Context $siteContext 148 | 149 | Foreach ($action in $actions) { 150 | $action.DeleteObject() 151 | } 152 | $siteContext.Web.Update() 153 | $siteContext.ExecuteQuery() 154 | 155 | $settingsList = Get-List -Context $adminContext -ListTitle $ListTitle 156 | $adminContext.Load($settingsList) 157 | $adminContext.ExecuteQuery(); 158 | 159 | $query = New-Object Microsoft.SharePoint.Client.CamlQuery 160 | $query.ViewXml = " 161 | 162 | " 163 | $listItems = $settingsList.GetItems($query) 164 | $adminContext.Load($listItems) 165 | $adminContext.ExecuteQuery(); 166 | 167 | $instance = $listItems | Where-Object {$_["URL"] -eq $TargetSite.ToLower()} 168 | 169 | Foreach ($item in $instance) { 170 | $item.DeleteObject() 171 | } 172 | 173 | $adminContext.Web.Update() 174 | $adminContext.ExecuteQuery() 175 | } 176 | 177 | Function Install-To-Site-And-Subsites([string]$TargetSite) { 178 | Use-On-Subsites -TargetSite $TargetSite -RecursiveFunction ${function:Install-To-Site} 179 | } 180 | 181 | Function Uninstall-From-Site-And-Subsites([string]$TargetSite) { 182 | Use-On-Subsites -TargetSite $TargetSite -RecursiveFunction ${function:Uninstall-From-Site} 183 | } 184 | 185 | Function Use-On-Subsites([string]$TargetSite, [scriptblock]$RecursiveFunction) { 186 | $RecursiveFunction.Invoke($TargetSite) 187 | 188 | $siteContext = Get-Context-For-Site -siteURL $TargetSite -UserName $UserName -Password $Password 189 | 190 | $TargetSite -match 'https:\/\/(.*?\.sharepoint.com)' 191 | $originalDomain = $Matches[1] 192 | 193 | $web = $siteContext.Web 194 | $siteContext.Load($web) 195 | $siteContext.ExecuteQuery() 196 | $Webs = $siteContext.Web.Webs 197 | $siteContext.Load($Webs) 198 | $siteContext.ExecuteQuery() 199 | 200 | Foreach ($site in $Webs) { 201 | if ($site.Url -match $originalDomain) { 202 | Use-On-Subsites -TargetSite $site.Url -RecursiveFunction $RecursiveFunction 203 | } 204 | } 205 | 206 | } 207 | -------------------------------------------------------------------------------- /CreateSite/run.ps1: -------------------------------------------------------------------------------- 1 | if ($Env:POSTMethod) 2 | { 3 | # POST method: $req 4 | $requestBody = Get-Content $req -Raw | ConvertFrom-Json 5 | $ID = $requestBody.id 6 | } 7 | 8 | [string]$DistributionFolder = $Env:distributionFolder 9 | 10 | if (-not $DistributionFolder) 11 | { 12 | $DistributionFolder = (Split-Path $MyInvocation.MyCommand.Path) 13 | $DistributionFolderArray = $DistributionFolder.Split('\') 14 | $DistributionFolderArray[$DistributionFolderArray.Count - 1] = "" 15 | $DistributionFolder = $DistributionFolderArray -join "\" 16 | } 17 | 18 | . $DistributionFolder\EUMSites_Helper.ps1 19 | LoadEnvironmentSettings 20 | 21 | . $DistributionFolder\masthead.ps1 -username $SPCredentials.UserName -password $SPCredentials.Password -MastheadInstallerSite "https://envisionit.sharepoint.com/sites/home" 22 | 23 | if ($listItemID) 24 | { 25 | # Get the specific Site Collection List item in master site for the site that needs to be created 26 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 27 | 28 | $pendingSiteCollections = Get-PnPListItem -List $SiteListName -Query " 29 | 30 | 31 | 32 | 33 | 34 | 35 | $itemId 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | " 57 | } 58 | else 59 | { 60 | # Check the Site Collection List in master site for any sites that need to be created 61 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 62 | 63 | $pendingSiteCollections = Get-PnPListItem -List $SiteListName -Query " 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | " 86 | } 87 | 88 | if ($pendingSiteCollections.Count -gt 0) 89 | { 90 | # Get the time zone of the master site 91 | $spWeb = Get-PnPWeb -Includes RegionalSettings.TimeZone 92 | [int]$timeZoneId = $spWeb.RegionalSettings.TimeZone.Id 93 | 94 | # Iterate through the pending sites. Create them if needed, and apply template 95 | $pendingSiteCollections | ForEach { 96 | $pendingSite = $_ 97 | 98 | [string]$siteTitle = $pendingSite["Title"] 99 | [string]$alias = $pendingSite["EUMAlias"] 100 | if ($alias) 101 | { 102 | $siteURL = "$($WebAppURL)/sites/$alias" 103 | } 104 | else 105 | { 106 | [string]$siteURL = ($pendingSite["EUMSiteURL"]).Url 107 | } 108 | [string]$publicGroup = $pendingSite["EUMPublicGroup"] 109 | [string]$breadcrumbHTML = $pendingSite["EUMBreadcrumbHTML"] 110 | [string]$parentURL = $pendingSite["EUMParentURL"].Url 111 | 112 | [bool]$siteCollection = CheckIfSiteCollection -siteURL $siteURL 113 | 114 | [string]$eumSiteTemplate = $pendingSite["EUMSiteTemplate"] 115 | 116 | [string]$author = $pendingSite["Author"].Email 117 | 118 | $baseSiteTemplate = "" 119 | $baseSiteType = "" 120 | $pnpSiteTemplate = "" 121 | $siteCreated = $false 122 | 123 | switch ($eumSiteTemplate) 124 | { 125 | "Classic Team Site" 126 | { 127 | $baseSiteTemplate = "STS#0" 128 | $baseSiteType = "" 129 | } 130 | "Modern Communication Site" 131 | { 132 | $baseSiteTemplate = "" 133 | $baseSiteType = "CommunicationSite" 134 | } 135 | "Modern Team Site" 136 | { 137 | $baseSiteTemplate = "" 138 | $baseSiteType = "TeamSite" 139 | } 140 | "Modern Client Site" 141 | { 142 | $baseSiteTemplate = "" 143 | $baseSiteType = "TeamSite" 144 | $pnpSiteTemplate = $DistributionFolder + "\SiteTemplates\Client-Template-Template.xml" 145 | } 146 | } 147 | 148 | # Classic style sites 149 | if ($baseSiteTemplate) 150 | { 151 | # Create the site 152 | if ($siteCollection) 153 | { 154 | # Create site (if it exists, it will error but not modify the existing site) 155 | Write-Output "Creating site collection $($siteURL) with base template $($baseSiteTemplate). Please wait..." 156 | New-PnPTenantSite -Title $siteTitle -Url $siteURL -Owner $author -TimeZone $timeZoneId -Template $baseSiteTemplate -RemoveDeletedSite -Wait -Force 157 | } 158 | else 159 | { 160 | # Connect to parent site 161 | Helper-Connect-PnPOnline -Url $parentURL 162 | 163 | # Create the subsite 164 | Write-Output "Creating subsite $($siteURL) with base template $($baseSiteTemplate) under $($parentURL). Please wait..." 165 | 166 | [string]$subsiteURL = $siteURL.Replace($parentURL, "").Trim('/') 167 | New-PnPWeb -Title $siteTitle -Url $subsiteURL -Template $baseSiteTemplate 168 | 169 | Disconnect-PnPOnline 170 | } 171 | $siteCreated = $true 172 | 173 | } 174 | # Modern style sites 175 | else 176 | { 177 | # Create the site 178 | Write-Output "Creating site collection $($siteURL) with modern type $($baseSiteType). Please wait..." 179 | switch ($baseSiteType) 180 | { 181 | "CommunicationSite" 182 | { 183 | New-PnPSite -Type CommunicationSite -Title $siteTitle -Url $siteURL 184 | $siteCreated = $true 185 | } 186 | "TeamSite" 187 | { 188 | if ($publicGroup) 189 | { 190 | New-PnPSite -Type TeamSite -Title $siteTitle -Alias $alias -IsPublic 191 | } 192 | else 193 | { 194 | New-PnPSite -Type TeamSite -Title $siteTitle -Alias $alias 195 | } 196 | $siteCreated = $true 197 | } 198 | } 199 | 200 | } 201 | 202 | if ($siteCreated) 203 | { 204 | Helper-Connect-PnPOnline -Url $siteURL 205 | 206 | # Set the site collection admins 207 | Add-PnPSiteCollectionAdmin -Owners "pcarson@envisionit.com" 208 | 209 | Start-Sleep -Seconds 15 210 | 211 | if ($pnpSiteTemplate) 212 | { 213 | Set-PnPTraceLog -On -Level Debug 214 | Apply-PnPProvisioningTemplate -Path $pnpSiteTemplate 215 | } 216 | 217 | Disconnect-PnPOnline 218 | 219 | # Reconnect to the master site and update the site collection list 220 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 221 | 222 | # Set the breadcrumb HTML 223 | [string]$siteRelativeURL = $siteURL.Replace($($WebAppURL), "") 224 | [string]$parentRelativeURL = $parentURL.Replace($($WebAppURL), "") 225 | $parentBreadcrumbHTML = "" 226 | if ($parentRelativeURL) 227 | { 228 | $parentListItem = GetSiteEntry -siteRelativeURL $parentRelativeURL 229 | if ($parentListItem) 230 | { 231 | [string]$parentBreadcrumbHTML = $parentListItem["EUMBreadcrumbHTML"] 232 | } 233 | } 234 | [string]$breadcrumbHTML = GetBreadcrumbHTML -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentBreadcrumbHTML $parentBreadcrumbHTML 235 | 236 | # Set the site created date, breadcrumb, and site URL 237 | Set-PnPListItem -List $SiteListName -Identity $pendingSite.Id -Values @{ "EUMSiteCreated" = [System.DateTime]::Now; "EUMBreadcrumbHTML" = $breadcrumbHTML; "EUMSiteURL" = $siteRelativeURL } 238 | 239 | # Install Masthead on the site 240 | Install-To-Site $siteURL 241 | } 242 | 243 | # Reconnect to the master site for the next iteration 244 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 245 | } 246 | } 247 | else 248 | { 249 | Write-Output "No sites pending creation" 250 | } 251 | 252 | -------------------------------------------------------------------------------- /CreateList/EUMSites.DeployTemplate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 19 | 20 | 26 | 27 | 35 | 36 | 38 | 39 | 42 | 45 | 46 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 30 89 | clienttemplates.js 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 30 111 | clienttemplates.js 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /CreateSite/modules/SharePointPnPPowerShellOnline.psd1: -------------------------------------------------------------------------------- 1 | @{ 2 | RootModule = 'SharePointPnP.PowerShell.Online.Commands.dll' 3 | ModuleVersion = '3.2.1810.0' 4 | Description = 'SharePoint Patterns and Practices PowerShell Cmdlets for SharePoint Online' 5 | GUID = '8f1147be-a8e4-4bd2-a705-841d5334edc0' 6 | Author = 'SharePoint Patterns and Practices' 7 | CompanyName = 'SharePoint Patterns and Practices' 8 | DotNetFrameworkVersion = '4.5' 9 | ProcessorArchitecture = 'None' 10 | FunctionsToExport = '*' 11 | CmdletsToExport = 'Add-PnPApp','Add-PnPClientSidePage','Add-PnPClientSidePageSection','Add-PnPClientSideText','Add-PnPClientSideWebPart','Add-PnPContentType','Add-PnPContentTypeToDocumentSet','Add-PnPContentTypeToList','Add-PnPCustomAction','Add-PnPDataRowsToProvisioningTemplate','Add-PnPDocumentSet','Add-PnPEventReceiver','Add-PnPField','Add-PnPFieldFromXml','Add-PnPFieldToContentType','Add-PnPFile','Add-PnPFileToProvisioningTemplate','Add-PnPFolder','Add-PnPHtmlPublishingPageLayout','Add-PnPHubSiteAssociation','Add-PnPIndexedProperty','Add-PnPJavaScriptBlock','Add-PnPJavaScriptLink','Add-PnPListFoldersToProvisioningTemplate','Add-PnPListItem','Add-PnPMasterPage','Add-PnPNavigationNode','Test-PnPOffice365GroupAliasIsUsed','Add-PnPOffice365GroupToSite','Add-PnPProvisioningSequence','Add-PnPProvisioningSite','Add-PnPProvisioningSubSite','Add-PnPProvisioningTemplate','Add-PnPPublishingImageRendition','Add-PnPPublishingPage','Add-PnPPublishingPageLayout','Add-PnPRoleDefinition','Add-PnPSiteClassification','Add-PnPSiteCollectionAdmin','Add-PnPSiteCollectionAppCatalog','Add-PnPSiteDesign','Add-PnPSiteScript','Add-PnPStoredCredential','Add-PnPTaxonomyField','Add-PnPTenantCdnOrigin','Add-PnPTenantTheme','Add-PnPUserToGroup','Add-PnPView','Add-PnPWebhookSubscription','Add-PnPWebPartToWebPartPage','Add-PnPWebPartToWikiPage','Add-PnPWikiPage','Add-PnPWorkflowDefinition','Add-PnPWorkflowSubscription','Apply-PnPProvisioningHierarchy','Apply-PnPProvisioningTemplate','Set-PnPSitePolicy','Approve-PnPTenantServicePrincipalPermissionRequest','Clear-PnPListItemAsRecord','Clear-PnPRecycleBinItem','Clear-PnPTenantRecycleBinItem','Connect-PnPOnline','Connect-PnPMicrosoftGraph','Convert-PnPProvisioningTemplate','Convert-PnPFolderToProvisioningTemplate','Copy-PnPFile','Deny-PnPTenantServicePrincipalPermissionRequest','Disable-PnPFeature','Disable-PnPInPlaceRecordsManagementForSite','Disable-PnPPowerShellTelemetry','Disable-PnPResponsiveUI','Disable-PnPSiteClassification','Disable-PnPTenantServicePrincipal','Disconnect-PnPOnline','Enable-PnPFeature','Enable-PnPInPlaceRecordsManagementForSite','Enable-PnPPowerShellTelemetry','Enable-PnPResponsiveUI','Enable-PnPSiteClassification','Enable-PnPTenantServicePrincipal','Get-PnPProperty','Export-PnPTaxonomy','Export-PnPTermGroupToXml','Find-PnPFile','Get-PnPApp','Get-PnPAppInstance','Get-PnPAuditing','Get-PnPAuthenticationRealm','Get-PnPAvailableClientSideComponents','Get-PnPAzureADManifestKeyCredentials','Get-PnPClientSideComponent','Get-PnPClientSidePage','Get-PnPContentType','Get-PnPContentTypePublishingHubUrl','Get-PnPCustomAction','Get-PnPDefaultColumnValues','Get-PnPDocumentSetTemplate','Get-PnPEventReceiver','Get-PnPException','Get-PnPFeature','Get-PnPField','Get-PnPFile','Get-PnPFolder','Get-PnPFolderItem','Get-PnPGroup','Get-PnPGroupMembers','Get-PnPGroupPermissions','Get-PnPHealthScore','Get-PnPHideDefaultThemes','Get-PnPHomePage','Get-PnPHubSite','Get-PnPIndexedPropertyKeys','Get-PnPInPlaceRecordsManagement','Get-PnPJavaScriptLink','Get-PnPList','Get-PnPLabel','Get-PnPListInformationRightsManagement','Get-PnPListItem','Get-PnPListRecordDeclaration','Get-PnPMasterPage','Get-PnPNavigationNode','Get-PnPAccessToken','Get-PnPAzureCertificate','Get-PnPAppAuthAccessToken','Get-PnPConnection','Get-PnPSiteCollectionTermStore','Get-PnPStorageEntity','Get-PnPPowerShellTelemetryEnabled','Get-PnPPropertyBag','Get-PnPProvisioningSequence','Get-PnPProvisioningSite','Get-PnPProvisioningTemplate','Get-PnPProvisioningTemplateFromGallery','Get-PnPPublishingImageRendition','Get-PnPRecycleBinItem','Get-PnPRequestAccessEmails','Get-PnPRoleDefinition','Get-PnPSearchConfiguration','Get-PnPSearchCrawlLog','Get-PnPSite','Get-PnPSiteClassification','Get-PnPSiteClosure','Get-PnPSiteCollectionAdmin','Get-PnPSiteDesign','Get-PnPSiteDesignRights','Get-PnPSitePolicy','Get-PnPSiteScript','Get-PnPSiteSearchQueryResults','Get-PnPContext','Get-PnPStoredCredential','Get-PnPSubWebs','Get-PnPTaxonomyItem','Get-PnPTaxonomySession','Get-PnPTenant','Get-PnPTenantAppCatalogUrl','Get-PnPTenantCdnEnabled','Get-PnPTenantCdnOrigin','Get-PnPTenantCdnPolicies','Get-PnPTenantRecycleBinItem','Get-PnPTenantServicePrincipal','Get-PnPTenantServicePrincipalPermissionGrants','Get-PnPTenantServicePrincipalPermissionRequests','Get-PnPTenantSite','Get-PnPTenantTheme','Get-PnPTerm','Get-PnPTermGroup','Get-PnPTermSet','Get-PnPTheme','Get-PnPTimeZoneId','Get-PnPUnifiedGroup','Get-PnPUnifiedGroupMembers','Get-PnPUnifiedGroupOwners','Get-PnPUPABulkImportStatus','Get-PnPUser','Get-PnPUserProfileProperty','Get-PnPView','Get-PnPWeb','Get-PnPWebhookSubscriptions','Get-PnPWebPart','Get-PnPWebPartProperty','Get-PnPWebPartXml','Get-PnPWebTemplates','Get-PnPWikiPageContent','Get-PnPWorkflowDefinition','Get-PnPWorkflowInstance','Get-PnPWorkflowSubscription','Grant-PnPHubSiteRights','Grant-PnPSiteDesignRights','Grant-PnPTenantServicePrincipalPermission','Import-PnPAppPackage','Import-PnPTaxonomy','Import-PnPTermGroupFromXml','Import-PnPTermSet','Install-PnPApp','Install-PnPSolution','Invoke-PnPQuery','Invoke-PnPSiteDesign','Invoke-PnPWebAction','Measure-PnPList','Measure-PnPWeb','Measure-PnPResponseTime','Move-PnPClientSideComponent','Move-PnPFile','Move-PnPFolder','Move-PnPListItemToRecycleBin','Move-PnPRecycleBinItem','New-PnPExtensibilityHandlerObject','New-PnPGroup','New-PnPList','New-PnPPersonalSite','New-PnPAzureCertificate','New-PnPUnifiedGroup','New-PnPProvisioningCommunicationSite','New-PnPProvisioningHierarchy','New-PnPProvisioningSequence','New-PnPProvisioningTeamNoGroupSite','New-PnPProvisioningTeamNoGroupSubSite','New-PnPProvisioningTeamSite','New-PnPProvisioningTemplate','New-PnPProvisioningTemplateFromFolder','New-PnPSite','New-PnPTenantSite','New-PnPTerm','New-PnPTermGroup','New-PnPTermSet','New-PnPUPABulkImportJob','New-PnPUser','New-PnPWeb','Publish-PnPApp','Read-PnPProvisioningHierarchy','Read-PnPProvisioningTemplate','Register-PnPHubSite','Remove-PnPApp','Remove-PnPClientSideComponent','Remove-PnPClientSidePage','Remove-PnPContentType','Remove-PnPContentTypeFromDocumentSet','Remove-PnPContentTypeFromList','Remove-PnPCustomAction','Remove-PnPIndexedProperty','Remove-PnPEventReceiver','Remove-PnPField','Remove-PnPFieldFromContentType','Remove-PnPFile','Remove-PnPFileFromProvisioningTemplate','Remove-PnPFolder','Remove-PnPGroup','Remove-PnPHubSiteAssociation','Remove-PnPJavaScriptLink','Remove-PnPList','Remove-PnPListItem','Remove-PnPNavigationNode','Remove-PnPStorageEntity','Remove-PnPPropertyBagValue','Remove-PnPPublishingImageRendition','Remove-PnPRoleDefinition','Remove-PnPTenantSite','Remove-PnPSiteClassification','Remove-PnPSiteCollectionAdmin','Remove-PnPSiteCollectionAppCatalog','Remove-PnPSiteDesign','Remove-PnPSiteScript','Remove-PnPStoredCredential','Remove-PnPTaxonomyItem','Remove-PnPTenantCdnOrigin','Remove-PnPTenantTheme','Remove-PnPTermGroup','Remove-PnPUnifiedGroup','Remove-PnPUser','Remove-PnPUserFromGroup','Remove-PnPView','Remove-PnPWeb','Remove-PnPWebhookSubscription','Remove-PnPWebPart','Remove-PnPWikiPage','Remove-PnPWorkflowDefinition','Remove-PnPWorkflowSubscription','Rename-PnPFile','Rename-PnPFolder','Request-PnPReIndexList','Request-PnPReIndexWeb','Resolve-PnPFolder','Restore-PnPRecycleBinItem','Restore-PnPTenantRecycleBinItem','Resume-PnPWorkflowInstance','Revoke-PnPSiteDesignRights','Revoke-PnPTenantServicePrincipalPermission','Save-PnPProvisioningHierarchy','Save-PnPProvisioningTemplate','Send-PnPMail','Set-PnPAppSideLoading','Set-PnPAuditing','Set-PnPAvailablePageLayouts','Set-PnPClientSidePage','Set-PnPClientSideText','Set-PnPClientSideWebPart','Set-PnPContext','Set-PnPDefaultColumnValues','Set-PnPDefaultContentTypeToList','Set-PnPDefaultPageLayout','Set-PnPField','Set-PnPDocumentSetField','Set-PnPFileCheckedIn','Set-PnPFileCheckedOut','Set-PnPGroup','Set-PnPGroupPermissions','Set-PnPHideDefaultThemes','Set-PnPHomePage','Set-PnPHubSite','Set-PnPIndexedProperties','Set-PnPInPlaceRecordsManagement','Set-PnPList','Set-PnPLabel','Set-PnPListInformationRightsManagement','Set-PnPListItem','Set-PnPListItemAsRecord','Set-PnPListItemPermission','Set-PnPListPermission','Set-PnPListRecordDeclaration','Set-PnPMasterPage','Set-PnPMinimalDownloadStrategy','Set-PnPStorageEntity','Set-PnPPropertyBagValue','Set-PnPProvisioningTemplateMetadata','Set-PnPRequestAccessEmails','Set-PnPSearchConfiguration','Set-PnPSite','Set-PnPSiteClosure','Set-PnPSiteDesign','Set-PnPSiteScript','Set-PnPTaxonomyFieldValue','Set-PnPTenant','Set-PnPTenantCdnEnabled','Set-PnPTenantCdnPolicy','Set-PnPTenantSite','Set-PnPTheme','Set-PnPTraceLog','Set-PnPUnifiedGroup','Set-PnPUserProfileProperty','Set-PnPView','Set-PnPWeb','Set-PnPWebhookSubscription','Set-PnPWebPartProperty','Set-PnPWebPermission','Set-PnPWebTheme','Set-PnPWikiPageContent','Copy-PnPItemProxy','Move-PnPItemProxy','Start-PnPWorkflowInstance','Stop-PnPWorkflowInstance','Submit-PnPSearchQuery','Test-PnPListItemIsRecord','Test-PnPProvisioningHierarchy','Uninstall-PnPApp','Uninstall-PnPAppInstance','Uninstall-PnPSolution','Unpublish-PnPApp','Unregister-PnPHubSite','Update-PnPApp','Update-PnPSiteClassification' 12 | VariablesToExport = '*' 13 | AliasesToExport = '*' 14 | FormatsToProcess = 'SharePointPnP.PowerShell.Online.Commands.Format.ps1xml' 15 | PrivateData = @{ 16 | PSData = @{ 17 | ProjectUri = 'https://aka.ms/sppnp' 18 | IconUri = 'https://raw.githubusercontent.com/pnp/media/master/optimized/pnp-projects/blue/png/pnp-powershell-300.png' 19 | } 20 | } 21 | } 22 | # SIG # Begin signature block 23 | # MIIkVgYJKoZIhvcNAQcCoIIkRzCCJEMCAQExDzANBglghkgBZQMEAgEFADB5Bgor 24 | # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG 25 | # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBf05Q1L5umFRWP 26 | # ewmJkDDt0ME8nL8llwZpXc0qSOBBMaCCDYEwggX/MIID56ADAgECAhMzAAABA14l 27 | # HJkfox64AAAAAAEDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD 28 | # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy 29 | # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p 30 | # bmcgUENBIDIwMTEwHhcNMTgwNzEyMjAwODQ4WhcNMTkwNzI2MjAwODQ4WjB0MQsw 31 | # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u 32 | # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy 33 | # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB 34 | # AQDRlHY25oarNv5p+UZ8i4hQy5Bwf7BVqSQdfjnnBZ8PrHuXss5zCvvUmyRcFrU5 35 | # 3Rt+M2wR/Dsm85iqXVNrqsPsE7jS789Xf8xly69NLjKxVitONAeJ/mkhvT5E+94S 36 | # nYW/fHaGfXKxdpth5opkTEbOttU6jHeTd2chnLZaBl5HhvU80QnKDT3NsumhUHjR 37 | # hIjiATwi/K+WCMxdmcDt66VamJL1yEBOanOv3uN0etNfRpe84mcod5mswQ4xFo8A 38 | # DwH+S15UD8rEZT8K46NG2/Ys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cTB1JlZG1vbmQx 100 | # HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z 101 | # b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAQNeJRyZH6MeuAAAAAABAzAN 102 | # BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor 103 | # BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQgiEJ6KV+0 104 | # xDNUWSrsOsBiu8ftT+wJqWQbsUQ+baqFa+QwQgYKKwYBBAGCNwIBDDE0MDKgFIAS 105 | # AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN 106 | # BgkqhkiG9w0BAQEFAASCAQCWIcXdSkEOFdKHknkl7MVv53cvR3a5rO36dsX3vs8K 107 | # un+zDosePKkjpmRO0O61PCbriVPPeeviufek7eJZUJgq/0JJOOaeXM3TszkQFE/c 108 | # bqCrU3Hz4TGtA9QkffkTyFhY2qrim6F5MIrdIDvPuYvfqLRriyITnrP9WWNaHaQe 109 | # jFxjP4MhxPCT5mPq2ogO5yXVS3e/xDa0x2ajVMa5wfyLWM3i3UA50ycoEoxCNr5B 110 | # wxLtjGWQuZRmBpjThUGzhFSsHS0Mhn9miQ0mm6oDIVuOS9akBm0lEPtsMnBiMbMp 111 | # Z6ovpzNemO5ceLWS9M8s+hG9E+/hzmTCnolbutExazpDoYITtTCCE7EGCisGAQQB 112 | # gjcDAwExghOhMIITnQYJKoZIhvcNAQcCoIITjjCCE4oCAQMxDzANBglghkgBZQME 113 | # AgEFADCCAVcGCyqGSIb3DQEJEAEEoIIBRgSCAUIwggE+AgEBBgorBgEEAYRZCgMB 114 | # MDEwDQYJYIZIAWUDBAIBBQAEIGa2V9+SzfbOvy0U5rB1wJVyhE6CEAnpKpZEONBD 115 | # rXJmAgZbrQQ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/a7LZOF32Fmgf00gimwjJckiYY72FBQx0UqDb3aT 131 | # susoplv47VDf27/0klDF49EJ8gBIwhEWLYTHtFNRg98M5wOTzVKfuhjWXK1nzPsW 132 | # 5/Qx6NGoQjfKDhPjMEsRpEzYPH8v0ef742MSvrRI4ydNswRZRX0mcdrx2hRFmIRo 133 | # Ku4m4jadyHxkwdYBWE4mA4V1vZfS0MxFHcjbCPaW1UfuHw4NnbHsDwRv8L0QOESu 134 | # pwbQA7wledA0Xj+fQchPb69P0lk17eyRGKneUgB+fHAL0JNbY+qqMuwGh1R0Uda3 135 | # yQEbJQIDAQABo4IBGzCCARcwHQYDVR0OBBYEFP5k/7/EzmU2uNamuNJbShVglJcH 136 | # MB8GA1UdIwQYMBaAFNVjOlyKMZDzQ3t8RhvFM2hahW1VMFYGA1UdHwRPME0wS6BJ 137 | # oEeGRWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01p 138 | # Y1RpbVN0YVBDQV8yMDEwLTA3LTAxLmNybDBaBggrBgEFBQcBAQROMEwwSgYIKwYB 139 | # BQUHMAKGPmh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvY2VydHMvTWljVGlt 140 | # U3RhUENBXzIwMTAtMDctMDEuY3J0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYI 141 | # KwYBBQUHAwgwDQYJKoZIhvcNAQELBQADggEBAEnI5BKJf8YlLqfOo0xeUA8dkzKY 142 | # WUUpF1roTtBH5fmvsXLsVQx84IT8WKvAcqU2/2dnrMP/YFtz3qSrucNPZXIdjhEO 143 | # WME9ELHrBKEWzHRmfm/DZuqorEPnQfaNboPXbJuyfxWc6tJn3h18adwiTJW7AIde 144 | # Gf2e+D1v2qehOcrAtOC2l+rNRzCULRvKRgTS6o77geVG4V97yLKxLMF5ZdI89jN+ 145 | # q+8EHIsIB+ggteUYAGOX+WXZxR4/Ib/odk3ze9AD2FR+X1WlF1EzMrg9QUm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a6YacRy5rYDkeagMXQzafQ732D8OE7cQnfXXSY 177 | # Ighh2rBQHm+98eEA3+cxB6STOvdlR3jo+KhIq/fecn5ha293qYHLpwmsObvsxsvY 178 | # grRyzR30uIUBHoD7G4kqVDmyW9rIDVWZeodzOwjmmC3qjeAzLhIp9cAvVCch98is 179 | # TtoouLGp25ayp0Kiyc8ZQU3ghvkqmqMRZjDTu3QyS99je/WZii8bxyGvWbWu3EQ8 180 | # l1Bx16HSxVXjad5XwdHeMMD9zOZN+w2/XU/pnR4ZOC+8z1gFLu8NoFA12u8JJxzV 181 | # s341Hgi62jbb01+P3nSISRKhggOsMIIClAIBATCB/qGB1KSB0TCBzjELMAkGA1UE 182 | # BhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAc 183 | # BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEpMCcGA1UECxMgTWljcm9zb2Z0 184 | # IE9wZXJhdGlvbnMgUHVlcnRvIFJpY28xJjAkBgNVBAsTHVRoYWxlcyBUU1MgRVNO 185 | # OjU4NDctRjc2MS00RjcwMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBT 186 | # ZXJ2aWNloiUKAQEwCQYFKw4DAhoFAAMVAO0ICv9f7xxmgMPCjIj5XADfKo9DoIHe 187 | # MIHbpIHYMIHVMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G 188 | # A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkw 189 | # JwYDVQQLEyBNaWNyb3NvZnQgT3BlcmF0aW9ucyBQdWVydG8gUmljbzEnMCUGA1UE 190 | # CxMebkNpcGhlciBOVFMgRVNOOjU3RjYtQzFFMC01NTRDMSswKQYDVQQDEyJNaWNy 191 | # b3NvZnQgVGltZSBTb3VyY2UgTWFzdGVyIENsb2NrMA0GCSqGSIb3DQEBBQUAAgU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MiPlcAN8qj0MwgZgwgYCkfjB8MQswCQYDVQQGEwJVUzETMBEG 208 | # A1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWlj 209 | # cm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFt 210 | # cCBQQ0EgMjAxMAITMwAAANRPGcPYhMtFYwAAAAAA1DAWBBQg8BwJNn6QEFVfDpN9 211 | # ng1jVHvpIjANBgkqhkiG9w0BAQsFAASCAQAlo511euuWpvMDye7IC3V90pb+HOn9 212 | # qKZhTSO4waS7jtNac4Vyyu2/inSIsxkqR2APKKYEdmEpxC9KqrifqWja3GqgiyF+ 213 | # C5B+oiLNLaVUgH2zbmS6yFbadqzqOlYGap9DoaSDYtReMx/zC2fxpn9dl0syV7Af 214 | # q1Jl+1AiHwh50Xri4i0zfQIXoGAQXdU2N6HT2ALjssmfz3x/IS5NMoUY8IWnm8vN 215 | # sqmd3uphVbBxEU2pNtEAyvXEn8auExfvJDKCOlHXgCN6n2NCHofq5SiYoASTcxe1 216 | # +npiAdvL8Gw9UctIa1v1WeHG1YL0mJNAtsUFrBreZSaIN6rdJTBmGRa7 217 | # SIG # End signature block 218 | -------------------------------------------------------------------------------- /UpdateSitesList/modules/SharePointPnPPowerShellOnline.psd1: -------------------------------------------------------------------------------- 1 | @{ 2 | RootModule = 'SharePointPnP.PowerShell.Online.Commands.dll' 3 | ModuleVersion = '3.2.1810.0' 4 | Description = 'SharePoint Patterns and Practices PowerShell Cmdlets for SharePoint Online' 5 | GUID = '8f1147be-a8e4-4bd2-a705-841d5334edc0' 6 | Author = 'SharePoint Patterns and Practices' 7 | CompanyName = 'SharePoint Patterns and Practices' 8 | DotNetFrameworkVersion = '4.5' 9 | ProcessorArchitecture = 'None' 10 | FunctionsToExport = '*' 11 | CmdletsToExport = 'Add-PnPApp','Add-PnPClientSidePage','Add-PnPClientSidePageSection','Add-PnPClientSideText','Add-PnPClientSideWebPart','Add-PnPContentType','Add-PnPContentTypeToDocumentSet','Add-PnPContentTypeToList','Add-PnPCustomAction','Add-PnPDataRowsToProvisioningTemplate','Add-PnPDocumentSet','Add-PnPEventReceiver','Add-PnPField','Add-PnPFieldFromXml','Add-PnPFieldToContentType','Add-PnPFile','Add-PnPFileToProvisioningTemplate','Add-PnPFolder','Add-PnPHtmlPublishingPageLayout','Add-PnPHubSiteAssociation','Add-PnPIndexedProperty','Add-PnPJavaScriptBlock','Add-PnPJavaScriptLink','Add-PnPListFoldersToProvisioningTemplate','Add-PnPListItem','Add-PnPMasterPage','Add-PnPNavigationNode','Test-PnPOffice365GroupAliasIsUsed','Add-PnPOffice365GroupToSite','Add-PnPProvisioningSequence','Add-PnPProvisioningSite','Add-PnPProvisioningSubSite','Add-PnPProvisioningTemplate','Add-PnPPublishingImageRendition','Add-PnPPublishingPage','Add-PnPPublishingPageLayout','Add-PnPRoleDefinition','Add-PnPSiteClassification','Add-PnPSiteCollectionAdmin','Add-PnPSiteCollectionAppCatalog','Add-PnPSiteDesign','Add-PnPSiteScript','Add-PnPStoredCredential','Add-PnPTaxonomyField','Add-PnPTenantCdnOrigin','Add-PnPTenantTheme','Add-PnPUserToGroup','Add-PnPView','Add-PnPWebhookSubscription','Add-PnPWebPartToWebPartPage','Add-PnPWebPartToWikiPage','Add-PnPWikiPage','Add-PnPWorkflowDefinition','Add-PnPWorkflowSubscription','Apply-PnPProvisioningHierarchy','Apply-PnPProvisioningTemplate','Set-PnPSitePolicy','Approve-PnPTenantServicePrincipalPermissionRequest','Clear-PnPListItemAsRecord','Clear-PnPRecycleBinItem','Clear-PnPTenantRecycleBinItem','Connect-PnPOnline','Connect-PnPMicrosoftGraph','Convert-PnPProvisioningTemplate','Convert-PnPFolderToProvisioningTemplate','Copy-PnPFile','Deny-PnPTenantServicePrincipalPermissionRequest','Disable-PnPFeature','Disable-PnPInPlaceRecordsManagementForSite','Disable-PnPPowerShellTelemetry','Disable-PnPResponsiveUI','Disable-PnPSiteClassification','Disable-PnPTenantServicePrincipal','Disconnect-PnPOnline','Enable-PnPFeature','Enable-PnPInPlaceRecordsManagementForSite','Enable-PnPPowerShellTelemetry','Enable-PnPResponsiveUI','Enable-PnPSiteClassification','Enable-PnPTenantServicePrincipal','Get-PnPProperty','Export-PnPTaxonomy','Export-PnPTermGroupToXml','Find-PnPFile','Get-PnPApp','Get-PnPAppInstance','Get-PnPAuditing','Get-PnPAuthenticationRealm','Get-PnPAvailableClientSideComponents','Get-PnPAzureADManifestKeyCredentials','Get-PnPClientSideComponent','Get-PnPClientSidePage','Get-PnPContentType','Get-PnPContentTypePublishingHubUrl','Get-PnPCustomAction','Get-PnPDefaultColumnValues','Get-PnPDocumentSetTemplate','Get-PnPEventReceiver','Get-PnPException','Get-PnPFeature','Get-PnPField','Get-PnPFile','Get-PnPFolder','Get-PnPFolderItem','Get-PnPGroup','Get-PnPGroupMembers','Get-PnPGroupPermissions','Get-PnPHealthScore','Get-PnPHideDefaultThemes','Get-PnPHomePage','Get-PnPHubSite','Get-PnPIndexedPropertyKeys','Get-PnPInPlaceRecordsManagement','Get-PnPJavaScriptLink','Get-PnPList','Get-PnPLabel','Get-PnPListInformationRightsManagement','Get-PnPListItem','Get-PnPListRecordDeclaration','Get-PnPMasterPage','Get-PnPNavigationNode','Get-PnPAccessToken','Get-PnPAzureCertificate','Get-PnPAppAuthAccessToken','Get-PnPConnection','Get-PnPSiteCollectionTermStore','Get-PnPStorageEntity','Get-PnPPowerShellTelemetryEnabled','Get-PnPPropertyBag','Get-PnPProvisioningSequence','Get-PnPProvisioningSite','Get-PnPProvisioningTemplate','Get-PnPProvisioningTemplateFromGallery','Get-PnPPublishingImageRendition','Get-PnPRecycleBinItem','Get-PnPRequestAccessEmails','Get-PnPRoleDefinition','Get-PnPSearchConfiguration','Get-PnPSearchCrawlLog','Get-PnPSite','Get-PnPSiteClassification','Get-PnPSiteClosure','Get-PnPSiteCollectionAdmin','Get-PnPSiteDesign','Get-PnPSiteDesignRights','Get-PnPSitePolicy','Get-PnPSiteScript','Get-PnPSiteSearchQueryResults','Get-PnPContext','Get-PnPStoredCredential','Get-PnPSubWebs','Get-PnPTaxonomyItem','Get-PnPTaxonomySession','Get-PnPTenant','Get-PnPTenantAppCatalogUrl','Get-PnPTenantCdnEnabled','Get-PnPTenantCdnOrigin','Get-PnPTenantCdnPolicies','Get-PnPTenantRecycleBinItem','Get-PnPTenantServicePrincipal','Get-PnPTenantServicePrincipalPermissionGrants','Get-PnPTenantServicePrincipalPermissionRequests','Get-PnPTenantSite','Get-PnPTenantTheme','Get-PnPTerm','Get-PnPTermGroup','Get-PnPTermSet','Get-PnPTheme','Get-PnPTimeZoneId','Get-PnPUnifiedGroup','Get-PnPUnifiedGroupMembers','Get-PnPUnifiedGroupOwners','Get-PnPUPABulkImportStatus','Get-PnPUser','Get-PnPUserProfileProperty','Get-PnPView','Get-PnPWeb','Get-PnPWebhookSubscriptions','Get-PnPWebPart','Get-PnPWebPartProperty','Get-PnPWebPartXml','Get-PnPWebTemplates','Get-PnPWikiPageContent','Get-PnPWorkflowDefinition','Get-PnPWorkflowInstance','Get-PnPWorkflowSubscription','Grant-PnPHubSiteRights','Grant-PnPSiteDesignRights','Grant-PnPTenantServicePrincipalPermission','Import-PnPAppPackage','Import-PnPTaxonomy','Import-PnPTermGroupFromXml','Import-PnPTermSet','Install-PnPApp','Install-PnPSolution','Invoke-PnPQuery','Invoke-PnPSiteDesign','Invoke-PnPWebAction','Measure-PnPList','Measure-PnPWeb','Measure-PnPResponseTime','Move-PnPClientSideComponent','Move-PnPFile','Move-PnPFolder','Move-PnPListItemToRecycleBin','Move-PnPRecycleBinItem','New-PnPExtensibilityHandlerObject','New-PnPGroup','New-PnPList','New-PnPPersonalSite','New-PnPAzureCertificate','New-PnPUnifiedGroup','New-PnPProvisioningCommunicationSite','New-PnPProvisioningHierarchy','New-PnPProvisioningSequence','New-PnPProvisioningTeamNoGroupSite','New-PnPProvisioningTeamNoGroupSubSite','New-PnPProvisioningTeamSite','New-PnPProvisioningTemplate','New-PnPProvisioningTemplateFromFolder','New-PnPSite','New-PnPTenantSite','New-PnPTerm','New-PnPTermGroup','New-PnPTermSet','New-PnPUPABulkImportJob','New-PnPUser','New-PnPWeb','Publish-PnPApp','Read-PnPProvisioningHierarchy','Read-PnPProvisioningTemplate','Register-PnPHubSite','Remove-PnPApp','Remove-PnPClientSideComponent','Remove-PnPClientSidePage','Remove-PnPContentType','Remove-PnPContentTypeFromDocumentSet','Remove-PnPContentTypeFromList','Remove-PnPCustomAction','Remove-PnPIndexedProperty','Remove-PnPEventReceiver','Remove-PnPField','Remove-PnPFieldFromContentType','Remove-PnPFile','Remove-PnPFileFromProvisioningTemplate','Remove-PnPFolder','Remove-PnPGroup','Remove-PnPHubSiteAssociation','Remove-PnPJavaScriptLink','Remove-PnPList','Remove-PnPListItem','Remove-PnPNavigationNode','Remove-PnPStorageEntity','Remove-PnPPropertyBagValue','Remove-PnPPublishingImageRendition','Remove-PnPRoleDefinition','Remove-PnPTenantSite','Remove-PnPSiteClassification','Remove-PnPSiteCollectionAdmin','Remove-PnPSiteCollectionAppCatalog','Remove-PnPSiteDesign','Remove-PnPSiteScript','Remove-PnPStoredCredential','Remove-PnPTaxonomyItem','Remove-PnPTenantCdnOrigin','Remove-PnPTenantTheme','Remove-PnPTermGroup','Remove-PnPUnifiedGroup','Remove-PnPUser','Remove-PnPUserFromGroup','Remove-PnPView','Remove-PnPWeb','Remove-PnPWebhookSubscription','Remove-PnPWebPart','Remove-PnPWikiPage','Remove-PnPWorkflowDefinition','Remove-PnPWorkflowSubscription','Rename-PnPFile','Rename-PnPFolder','Request-PnPReIndexList','Request-PnPReIndexWeb','Resolve-PnPFolder','Restore-PnPRecycleBinItem','Restore-PnPTenantRecycleBinItem','Resume-PnPWorkflowInstance','Revoke-PnPSiteDesignRights','Revoke-PnPTenantServicePrincipalPermission','Save-PnPProvisioningHierarchy','Save-PnPProvisioningTemplate','Send-PnPMail','Set-PnPAppSideLoading','Set-PnPAuditing','Set-PnPAvailablePageLayouts','Set-PnPClientSidePage','Set-PnPClientSideText','Set-PnPClientSideWebPart','Set-PnPContext','Set-PnPDefaultColumnValues','Set-PnPDefaultContentTypeToList','Set-PnPDefaultPageLayout','Set-PnPField','Set-PnPDocumentSetField','Set-PnPFileCheckedIn','Set-PnPFileCheckedOut','Set-PnPGroup','Set-PnPGroupPermissions','Set-PnPHideDefaultThemes','Set-PnPHomePage','Set-PnPHubSite','Set-PnPIndexedProperties','Set-PnPInPlaceRecordsManagement','Set-PnPList','Set-PnPLabel','Set-PnPListInformationRightsManagement','Set-PnPListItem','Set-PnPListItemAsRecord','Set-PnPListItemPermission','Set-PnPListPermission','Set-PnPListRecordDeclaration','Set-PnPMasterPage','Set-PnPMinimalDownloadStrategy','Set-PnPStorageEntity','Set-PnPPropertyBagValue','Set-PnPProvisioningTemplateMetadata','Set-PnPRequestAccessEmails','Set-PnPSearchConfiguration','Set-PnPSite','Set-PnPSiteClosure','Set-PnPSiteDesign','Set-PnPSiteScript','Set-PnPTaxonomyFieldValue','Set-PnPTenant','Set-PnPTenantCdnEnabled','Set-PnPTenantCdnPolicy','Set-PnPTenantSite','Set-PnPTheme','Set-PnPTraceLog','Set-PnPUnifiedGroup','Set-PnPUserProfileProperty','Set-PnPView','Set-PnPWeb','Set-PnPWebhookSubscription','Set-PnPWebPartProperty','Set-PnPWebPermission','Set-PnPWebTheme','Set-PnPWikiPageContent','Copy-PnPItemProxy','Move-PnPItemProxy','Start-PnPWorkflowInstance','Stop-PnPWorkflowInstance','Submit-PnPSearchQuery','Test-PnPListItemIsRecord','Test-PnPProvisioningHierarchy','Uninstall-PnPApp','Uninstall-PnPAppInstance','Uninstall-PnPSolution','Unpublish-PnPApp','Unregister-PnPHubSite','Update-PnPApp','Update-PnPSiteClassification' 12 | VariablesToExport = '*' 13 | AliasesToExport = '*' 14 | FormatsToProcess = 'SharePointPnP.PowerShell.Online.Commands.Format.ps1xml' 15 | PrivateData = @{ 16 | PSData = @{ 17 | ProjectUri = 'https://aka.ms/sppnp' 18 | IconUri = 'https://raw.githubusercontent.com/pnp/media/master/optimized/pnp-projects/blue/png/pnp-powershell-300.png' 19 | } 20 | } 21 | } 22 | # SIG # Begin signature block 23 | # MIIkVgYJKoZIhvcNAQcCoIIkRzCCJEMCAQExDzANBglghkgBZQMEAgEFADB5Bgor 24 | # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG 25 | # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBf05Q1L5umFRWP 26 | # ewmJkDDt0ME8nL8llwZpXc0qSOBBMaCCDYEwggX/MIID56ADAgECAhMzAAABA14l 27 | # HJkfox64AAAAAAEDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD 28 | # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy 29 | # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p 30 | # bmcgUENBIDIwMTEwHhcNMTgwNzEyMjAwODQ4WhcNMTkwNzI2MjAwODQ4WjB0MQsw 31 | # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u 32 | # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy 33 | # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB 34 | # AQDRlHY25oarNv5p+UZ8i4hQy5Bwf7BVqSQdfjnnBZ8PrHuXss5zCvvUmyRcFrU5 35 | # 3Rt+M2wR/Dsm85iqXVNrqsPsE7jS789Xf8xly69NLjKxVitONAeJ/mkhvT5E+94S 36 | # nYW/fHaGfXKxdpth5opkTE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waGIm1dxVk5I 98 | # RcBCyZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIWKzCCFicCAQEwgZUwfjELMAkG 99 | # A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx 100 | # HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z 101 | # b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAQNeJRyZH6MeuAAAAAABAzAN 102 | # BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor 103 | # BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQgiEJ6KV+0 104 | # xDNUWSrsOsBiu8ftT+wJqWQbsUQ+baqFa+QwQgYKKwYBBAGCNwIBDDE0MDKgFIAS 105 | # AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN 106 | # BgkqhkiG9w0BAQEFAASCAQCWIcXdSkEOFdKHknkl7MVv53cvR3a5rO36dsX3vs8K 107 | # un+zDosePKkjpmRO0O61PCbriVPPeeviufek7eJZUJgq/0JJOOaeXM3TszkQFE/c 108 | # bqCrU3Hz4TGtA9QkffkTyFhY2qrim6F5MIrdIDvPuYvfqLRriyITnrP9WWNaHaQe 109 | # jFxjP4MhxPCT5mPq2ogO5yXVS3e/xDa0x2ajVMa5wfyLWM3i3UA50ycoEoxCNr5B 110 | # wxLtjGWQuZRmBpjThUGzhFSsHS0Mhn9miQ0mm6oDIVuOS9akBm0lEPtsMnBiMbMp 111 | # Z6ovpzNemO5ceLWS9M8s+hG9E+/hzmTCnolbutExazpDoYITtTCCE7EGCisGAQQB 112 | # gjcDAwExghOhMIITnQYJKoZIhvcNAQcCoIITjjCCE4oCAQMxDzANBglghkgBZQME 113 | # AgEFADCCAVcGCyqGSIb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aWNyb3NvZnQgVGltZS1TdGFtcCBTZXJ2 129 | # aWNlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv0i7sMQTtT74OGpo 130 | # uWATfTY+WnmWenhQyL9pJAFK/a7LZOF32Fmgf00gimwjJckiYY72FBQx0UqDb3aT 131 | # susoplv47VDf27/0klDF49EJ8gBIwhEWLYTHtFNRg98M5wOTzVKfuhjWXK1nzPsW 132 | # 5/Qx6NGoQjfKDhPjMEsRpEzYPH8v0ef742MSvrRI4ydNswRZRX0mcdrx2hRFmIRo 133 | # Ku4m4jadyHxkwdYBWE4mA4V1vZfS0MxFHcjbCPaW1UfuHw4NnbHsDwRv8L0QOESu 134 | # pwbQA7wledA0Xj+fQchPb69P0lk17eyRGKneUgB+fHAL0JNbY+qqMuwGh1R0Uda3 135 | # yQEbJQIDAQABo4IBGzCCARcwHQYDVR0OBBYEFP5k/7/EzmU2uNamuNJbShVglJcH 136 | # MB8GA1UdIwQYMBaAFNVjOlyKMZDzQ3t8RhvFM2hahW1VMFYGA1UdHwRPME0wS6BJ 137 | # oEeGRWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01p 138 | # Y1RpbVN0YVBDQV8yMDEwLTA3LTAxLmNybDBaBggrBgEFBQcBAQROMEwwSgYIKwYB 139 | # BQUHMAKGPmh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvY2VydHMvTWljVGlt 140 | # U3RhUENBXzIwMTAtMDctMDEuY3J0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYI 141 | # KwYBBQUHAwgwDQYJKoZIhvcNAQELBQADggEBAEnI5BKJf8YlLqfOo0xeUA8dkzKY 142 | # WUUpF1roTtBH5fmvsXLsVQx84IT8WKvAcqU2/2dnrMP/YFtz3qSrucNPZXIdjhEO 143 | # WME9ELHrBKEWzHRmfm/DZuqorEPnQfaNboPXbJuyfxWc6tJn3h18adwiTJW7AIde 144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aQjP9qYn/dxUoLkSbiOewZSnFjnXshbcOc 175 | # o6I8+n99lmqQeKZt0uGc+R38ONiU9MalCpaGpL2eGq4EQoO4tYCbIjggtSXlZOz3 176 | # 9L9+Y1klD3ouOVd2onGqBooPiRa6YacRy5rYDkeagMXQzafQ732D8OE7cQnfXXSY 177 | # Ighh2rBQHm+98eEA3+cxB6STOvdlR3jo+KhIq/fecn5ha293qYHLpwmsObvsxsvY 178 | # grRyzR30uIUBHoD7G4kqVDmyW9rIDVWZeodzOwjmmC3qjeAzLhIp9cAvVCch98is 179 | # TtoouLGp25ayp0Kiyc8ZQU3ghvkqmqMRZjDTu3QyS99je/WZii8bxyGvWbWu3EQ8 180 | # l1Bx16HSxVXjad5XwdHeMMD9zOZN+w2/XU/pnR4ZOC+8z1gFLu8NoFA12u8JJxzV 181 | # s341Hgi62jbb01+P3nSISRKhggOsMIIClAIBATCB/qGB1KSB0TCBzjELMAkGA1UE 182 | # BhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAc 183 | # BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEpMCcGA1UECxMgTWljcm9zb2Z0 184 | # IE9wZXJhdGlvbnMgUHVlcnRvIFJpY28xJjAkBgNVBAsTHVRoYWxlcyBUU1MgRVNO 185 | # OjU4NDctRjc2MS00RjcwMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBT 186 | # ZXJ2aWNloiUKAQEwCQYFKw4DAhoFAAMVAO0ICv9f7xxmgMPCjIj5XADfKo9DoIHe 187 | # MIHbpIHYMIHVMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G 188 | # A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkw 189 | # JwYDVQQLEyBNaWNyb3NvZnQgT3BlcmF0aW9ucyBQdWVydG8gUmljbzEnMCUGA1UE 190 |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wLwYJKoZIhvcNAQkEMSIEIL9upE/hhHEC9tTMliRw 206 | # KRhj7CSbQ4O2cIiiFTFigl54MIHiBgsqhkiG9w0BCRACDDGB0jCBzzCBzDCBsQQU 207 | # 7QgK/1/vHGaAw8KMiPlcAN8qj0MwgZgwgYCkfjB8MQswCQYDVQQGEwJVUzETMBEG 208 | # A1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWlj 209 | # cm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFt 210 | # cCBQQ0EgMjAxMAITMwAAANRPGcPYhMtFYwAAAAAA1DAWBBQg8BwJNn6QEFVfDpN9 211 | # ng1jVHvpIjANBgkqhkiG9w0BAQsFAASCAQAlo511euuWpvMDye7IC3V90pb+HOn9 212 | # qKZhTSO4waS7jtNac4Vyyu2/inSIsxkqR2APKKYEdmEpxC9KqrifqWja3GqgiyF+ 213 | # C5B+oiLNLaVUgH2zbmS6yFbadqzqOlYGap9DoaSDYtReMx/zC2fxpn9dl0syV7Af 214 | # q1Jl+1AiHwh50Xri4i0zfQIXoGAQXdU2N6HT2ALjssmfz3x/IS5NMoUY8IWnm8vN 215 | # sqmd3uphVbBxEU2pNtEAyvXEn8auExfvJDKCOlHXgCN6n2NCHofq5SiYoASTcxe1 216 | # +npiAdvL8Gw9UctIa1v1WeHG1YL0mJNAtsUFrBreZSaIN6rdJTBmGRa7 217 | # SIG # End signature block 218 | -------------------------------------------------------------------------------- /EUMSites_Helper.ps1: -------------------------------------------------------------------------------- 1 | function LoadEnvironmentSettings() 2 | { 3 | [string]$Global:WebAppURL = $Env:webAppURL 4 | 5 | Set-PnPTraceLog -On -Level Debug 6 | 7 | if ($WebAppURL -ne "") 8 | { 9 | [string]$Global:SitesListSiteURL = "$($WebAppURL)$($Env:sitesListSiteCollectionPath)" 10 | [string]$Global:SiteListName = $Env:siteListName 11 | 12 | # MSI Variables via Function Application Settings Variables 13 | # Endpoint and Password 14 | $endpoint = $env:MSI_ENDPOINT 15 | $secret = $env:MSI_SECRET 16 | 17 | # Vault URI to get AuthN Token 18 | $vaultTokenURI = 'https://vault.azure.net&api-version=2017-09-01' 19 | # Create AuthN Header with our Function App Secret 20 | $header = @{'Secret' = $secret} 21 | 22 | # Get Key Vault AuthN Token 23 | $authenticationResult = Invoke-RestMethod -Method Get -Headers $header -Uri ($endpoint +'?resource=' +$vaultTokenURI) 24 | # Use Key Vault AuthN Token to create Request Header 25 | $requestHeader = @{ Authorization = "Bearer $($authenticationResult.access_token)" } 26 | 27 | # Our Key Vault Credential that we want to retreive URI 28 | # NOTE: API Ver for this is 2015-06-01 29 | 30 | # Call the Vault and Retrieve Creds 31 | $vaultSecretURI = $Env:serviceAccountURI 32 | $Secret = Invoke-RestMethod -Method GET -Uri $vaultSecretURI -ContentType 'application/json' -Headers $requestHeader 33 | $UserName = $Secret.Value 34 | 35 | $vaultSecretURI = $Env:serviceAccountPasswordURI 36 | $Secret = Invoke-RestMethod -Method GET -Uri $vaultSecretURI -ContentType 'application/json' -Headers $requestHeader 37 | $Password = ConvertTo-SecureString $Secret.Value -AsPlainText -Force 38 | 39 | $Global:SPCredentials = New-Object -typename System.Management.Automation.PSCredential -argumentlist $UserName, $Password 40 | } 41 | else 42 | { 43 | [xml]$config = Get-Content -Path "$DistributionFolder\sharepoint.config" 44 | 45 | [System.Array]$Global:managedPaths = $config.settings.common.managedPaths.path 46 | [string]$Global:SiteListName = $config.settings.common.siteLists.siteListName 47 | 48 | $environmentId = $config.settings.common.defaultEnvironment 49 | 50 | if (-not $environmentId) { 51 | #----------------------------------------------------------------------- 52 | # Prompt for the environment defined in the config 53 | #----------------------------------------------------------------------- 54 | 55 | Write-Output "`n***** AVAILABLE ENVIRONMENTS *****" -ForegroundColor DarkGray 56 | $config.settings.environments.environment | ForEach { 57 | Write-Output "$($_.id)`t $($_.name) - $($_.webApp.URL)" 58 | } 59 | Write-Output "***** AVAILABLE ENVIRONMENTS *****" 60 | 61 | Do 62 | { 63 | [int]$environmentId = Read-Host "Enter the ID of the environment from the above list" 64 | } 65 | Until ($environmentId -gt 0) 66 | } 67 | 68 | [System.Xml.XmlLinkedNode]$Global:environment = $config.settings.environments.environment | Where { $_.id -eq $environmentId } 69 | 70 | # Set variables based on environment selected 71 | [string]$Global:WebAppURL = $environment.webApp.url 72 | [string]$Global:SitesListSiteURL = "$($WebAppURL)$($environment.webApp.sitesListSiteCollectionPath)" 73 | 74 | $ManagedCredentials = $environment.webApp.managedCredentials 75 | $ManagedCredentialsType = $environment.webApp.managedCredentialsType 76 | $TenantId = $environment.webApp.tenantId 77 | $VaultName = $environment.webApp.vaultName 78 | 79 | $ManagedEUMCredentials = $environment.EUM.managedEUMCredentials 80 | [string]$Global:Domain_FK = $environment.EUM.domain_FK 81 | [string]$Global:SystemConfiguration_FK = $environment.EUM.systemConfiguration_FK 82 | [string]$Global:EUMURL = $environment.EUM.EUMURL 83 | 84 | Write-Output "Environment set to $($environment.name) - $($environment.webApp.URL) `n" 85 | 86 | #----------------------------------------------------------------------- 87 | # Get credentials from Windows Credential Manager 88 | #----------------------------------------------------------------------- 89 | if (Get-InstalledModule -Name "CredentialManager" -RequiredVersion "2.0") 90 | { 91 | $Global:SPCredentials = Get-StoredCredential -Target $managedCredentials 92 | switch ($managedCredentialsType) 93 | { 94 | "UsernamePassword" 95 | { 96 | if ($SPCredentials -eq $null) { 97 | $UserName = Read-Host "Enter the username to connect with" 98 | $Password = Read-Host "Enter the password for $UserName" -AsSecureString 99 | $SaveCredentials = Read-Host "Save the credentials in Windows Credential Manager (Y/N)?" 100 | if (($SaveCredentials -eq "y") -or ($SaveCredentials -eq "Y")) { 101 | $temp = New-StoredCredential -Target $managedCredentials -UserName $UserName -SecurePassword $Password 102 | } 103 | $Global:SPCredentials = New-Object -typename System.Management.Automation.PSCredential -argumentlist $UserName,$Password 104 | } 105 | else { 106 | Write-Output "Connecting with username" $SPCredentials.UserName 107 | } 108 | } 109 | 110 | "ClientIdSecret" 111 | { 112 | if ($SPCredentials -eq $null) { 113 | [string]$Global:O365ClientID = Read-Host "Enter the Client Id to connect with" 114 | [string]$Global:O365ClientSecret = Read-Host "Enter the Secret" 115 | $SaveCredentials = Read-Host "Save the credentials in Windows Credential Manager (Y/N)?" 116 | if (($SaveCredentials -eq "y") -or ($SaveCredentials -eq "Y")) { 117 | $temp = New-StoredCredential -Target $managedCredentials -UserName $O365ClientID -Password $O365ClientSecret 118 | } 119 | } 120 | else { 121 | [string]$Global:O365ClientID = $SPCredentials.UserName 122 | [string]$Global:O365ClientSecret = $SPCredentials.GetNetworkCredential().password 123 | Write-Output "Connecting with Client Id" $O365ClientID 124 | } 125 | } 126 | 127 | "AzureKeyVault" 128 | { 129 | if ($SPCredentials -eq $null) { 130 | $UserName = Read-Host "Enter the username to connect to the Azure Key Vault with" 131 | $Password = Read-Host "Enter the password for $UserName" -AsSecureString 132 | $SaveCredentials = Read-Host "Save the credentials in Windows Credential Manager (Y/N)?" 133 | if (($SaveCredentials -eq "y") -or ($SaveCredentials -eq "Y")) { 134 | $temp = New-StoredCredential -Target $managedCredentials -UserName $UserName -SecurePassword $Password 135 | } 136 | $Global:SPCredentials = New-Object -typename System.Management.Automation.PSCredential -argumentlist $UserName, $Password 137 | } 138 | else { 139 | Write-Output "Connecting with username" $SPCredentials.UserName 140 | } 141 | 142 | Login-AzureRmAccount -Credential $SPCredentials -TenantId $TenantId 143 | $UserName = (Get-AzureKeyVaultSecret -VaultName $VaultName -Name 'ServiceAccount').SecretValueText 144 | $Password = ConvertTo-SecureString (Get-AzureKeyVaultSecret -VaultName $VaultName -Name 'ServiceAccountPassword').SecretValueText -AsPlainText -Force 145 | $Global:SPCredentials = New-Object -typename System.Management.Automation.PSCredential -argumentlist $UserName, $Password 146 | } 147 | } 148 | if ($ManagedEUMCredentials -ne $null) 149 | { 150 | $EUMCredentials = Get-StoredCredential -Target $managedEUMCredentials 151 | if ($EUMCredentials -eq $null) { 152 | $Global:EUMClientID = Read-Host "Enter the Client ID to connect to EUM with" 153 | $SecureEUMSecret = Read-Host "Enter the secret for $EUMClientID" -AsSecureString 154 | $SaveCredentials = Read-Host "Save the credentials in Windows Credential Manager (Y/N)?" 155 | if (($SaveCredentials -eq "y") -or ($SaveCredentials -eq "Y")) { 156 | $temp = New-StoredCredential -Target $ManagedEUMCredentials -UserName $EUMClientID -SecurePassword $SecureEUMSecret 157 | } 158 | $Global:EUMSecret = (New-Object PSCredential "user",$SecureEUMSecret).GetNetworkCredential().Password 159 | } 160 | else { 161 | $Global:EUMClientID = $EUMCredentials.UserName 162 | $Global:EUMSecret = (New-Object PSCredential "user",$EUMCredentials.Password).GetNetworkCredential().Password 163 | Write-Output "Connecting to EUM with Client ID" $EUMClientID 164 | } 165 | } 166 | } 167 | else 168 | { 169 | Write-Output "Required Windows Credential Manager 2.0 PowerShell Module not found. Please install the module by entering the following command in PowerShell: ""Install-Module -Name ""CredentialManager"" -RequiredVersion 2.0""" 170 | break 171 | } 172 | } 173 | } 174 | 175 | function Helper-Connect-PnPOnline() 176 | { 177 | Param 178 | ( 179 | [Parameter(Mandatory=$true)][string] $URL 180 | ) 181 | 182 | if ($O365ClientID -and $O365ClientSecret) { 183 | Connect-PnPOnline -Url $URL -AppId $O365ClientID -AppSecret $O365ClientSecret 184 | } 185 | else { 186 | Connect-PnPOnline -Url $URL -Credentials $SPCredentials 187 | } 188 | } 189 | 190 | function CheckIfSiteCollection() 191 | { 192 | Param 193 | ( 194 | [Parameter(Mandatory=$true)][string] $siteURL 195 | ) 196 | [bool] $isSiteCollection = $false 197 | foreach($managedPath in $managedPaths) 198 | { 199 | 200 | [string]$relativeURL = $siteURL.Replace($WebAppURL, "").ToLower().Trim() 201 | 202 | if ($relativeURL -eq '/') 203 | { 204 | $isSiteCollection = $true 205 | } 206 | elseif ($relativeURL.StartsWith(($managedPath.ToLower()))) 207 | { 208 | [string]$relativeURLUpdated = $relativeURL.Replace($managedPath.ToLower(), "").Trim('/') 209 | [int]$charCount = ($relativeURLUpdated.ToCharArray() | Where-Object {$_ -eq '/'} | Measure-Object).Count 210 | 211 | $isSiteCollection = $charCount -eq 0 212 | } 213 | } 214 | 215 | return $isSiteCollection 216 | } 217 | 218 | function CheckIfSiteExists() 219 | { 220 | Param 221 | ( 222 | [Parameter(Mandatory=$true)][string] $siteURL, 223 | [Parameter(Mandatory=$false)][switch] $disconnect 224 | ) 225 | 226 | try 227 | { 228 | Helper-Connect-PnPOnline -Url $siteURL 229 | 230 | if ($disconnect.IsPresent) 231 | { 232 | Disconnect-PnPOnline 233 | } 234 | 235 | return $true 236 | } 237 | catch [System.Net.WebException] 238 | { 239 | if ([int]$_.Exception.Response.StatusCode -eq 404) 240 | { 241 | return $false 242 | } 243 | else 244 | { 245 | Write-Output "Exception Type: $($_.Exception.GetType().FullName)" 246 | Write-Output "Exception Message: $($_.Exception.Message)" 247 | } 248 | } 249 | catch 250 | { 251 | Write-Output "Exception Type: $($_.Exception.GetType().FullName)" 252 | Write-Output "Exception Message: $($_.Exception.Message)" 253 | } 254 | } 255 | 256 | function GetParentWebURL() 257 | { 258 | Param 259 | ( 260 | [Parameter(Mandatory=$true)][string] $siteURL, 261 | [Parameter(Mandatory=$false)][switch] $disconnect 262 | ) 263 | 264 | Helper-Connect-PnPOnline -Url $siteURL 265 | [Microsoft.SharePoint.Client.Web]$spWeb = Get-PnPWeb -Includes ParentWeb.ServerRelativeUrl 266 | 267 | if ($disconnect.IsPresent) 268 | { 269 | Disconnect-PnPOnline 270 | } 271 | 272 | return $spWeb.ParentWeb.ServerRelativeUrl 273 | } 274 | 275 | function GetSubWebs() 276 | { 277 | Param 278 | ( 279 | [Parameter(Mandatory=$true)][string] $siteURL, 280 | [Parameter(Mandatory=$false)][switch] $disconnect 281 | ) 282 | 283 | Helper-Connect-PnPOnline -Url $siteURL 284 | [Microsoft.SharePoint.Client.Web]$spWeb = Get-PnPWeb -Includes Webs 285 | 286 | if ($spWeb.Webs.Count -gt 0) 287 | { 288 | $spSubWebs = Get-PnPSubWebs -Web $spWeb -Recurse 289 | } 290 | else 291 | { 292 | $spSubWebs = $null 293 | } 294 | 295 | if ($disconnect.IsPresent) 296 | { 297 | Disconnect-PnPOnline 298 | } 299 | 300 | return $spSubWebs 301 | } 302 | 303 | function GetBreadcrumbHTML() 304 | { 305 | Param 306 | ( 307 | [Parameter(Mandatory=$true)][string] $siteRelativeURL, 308 | [Parameter(Mandatory=$true)][string] $siteTitle, 309 | [Parameter(Mandatory=$false)][string] $parentURL 310 | ) 311 | [string]$parentBreadcrumbHTML = "" 312 | 313 | if ($parentURL) 314 | { 315 | $parentURL = $parentURL.Replace($WebAppURL, "") 316 | $parentListItem = GetSiteEntry -siteRelativeURL $parentURL 317 | if ($parentListItem) 318 | { 319 | [string]$parentRelativeURL = ($parentListItem["EUMSiteURL"].Url).Replace($WebAppURL, "") 320 | [string]$parentTitle = $parentListItem["Title"] 321 | [string]$parentBreadcrumbHTML = GetBreadcrumbHTML -siteRelativeURL $parentRelativeURL -siteTitle $parentTitle -parentURL $parentListItem["EUMParentURL"].Url 322 | } 323 | } 324 | 325 | [string]$breadcrumbHTML = "$($siteTitle)" 326 | if ($parentBreadcrumbHTML) 327 | { 328 | $breadcrumbHTML = $parentBreadcrumbHTML + ' > ' + $breadcrumbHTML 329 | } 330 | return $breadcrumbHTML 331 | } 332 | 333 | function PrepareSiteItemValues() 334 | { 335 | Param 336 | ( 337 | [parameter(Mandatory=$true)][string]$siteRelativeURL, 338 | [parameter(Mandatory=$true)][string]$siteTitle, 339 | [parameter(Mandatory=$false)]$parentURL, 340 | [parameter(Mandatory=$false)][string]$breadcrumbHTML, 341 | [parameter(Mandatory=$false)]$brandingDeploymentType, 342 | [parameter(Mandatory=$false)]$selectedThemeName, 343 | [parameter(Mandatory=$false)]$masterPageName, 344 | [parameter(Mandatory=$false)]$siteTemplateName, 345 | [parameter(Mandatory=$false)]$siteCreatedDate, 346 | [parameter(Mandatory=$false)]$subSite 347 | ) 348 | 349 | [hashtable]$newListItemValues = @{} 350 | $newListItemValues.Add("Title", $siteTitle) 351 | $newListItemValues.Add("EUMSiteURL", $siteRelativeURL) 352 | 353 | if ($parentURL) 354 | { 355 | $newListItemValues.Add("EUMParentURL", $parentURL) 356 | } 357 | 358 | if ($breadcrumbHTML) 359 | { 360 | $newListItemValues.Add("EUMBreadcrumbHTML", $breadcrumbHTML) 361 | } 362 | 363 | if ($brandingDeploymentType) 364 | { 365 | $newListItemValues.Add("EUMBrandingDeploymentType", $brandingDeploymentType) 366 | } 367 | if ($selectedThemeName) 368 | { 369 | $newListItemValues.Add("EUMSetComposedLook", $selectedThemeName) 370 | } 371 | if ($masterPageName) 372 | { 373 | $newListItemValues.Add("EUMSetMasterPage", $masterPageName) 374 | } 375 | if ($siteTemplateName) 376 | { 377 | $newListItemValues.Add("EUMSiteTemplate", $siteTemplateName) 378 | } 379 | if ($siteCreatedDate) 380 | { 381 | $newListItemValues.Add("EUMSiteCreated", $siteCreatedDate) 382 | } 383 | 384 | $newListItemValues.Add("EUMIsSubsite", $subSite) 385 | 386 | return $newListItemValues 387 | } 388 | 389 | function GetSiteEntry() 390 | { 391 | Param 392 | ( 393 | [parameter(Mandatory=$true)][string]$siteRelativeURL, 394 | [Parameter(Mandatory=$false)][switch] $disconnect 395 | ) 396 | 397 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 398 | 399 | $siteListItem = Get-PnPListItem -List $SiteListName -Query " 400 | 401 | 402 | 403 | 404 | 405 | $($siteRelativeURL) 406 | 407 | 408 | 409 | " 410 | 411 | if ($disconnect.IsPresent) 412 | { 413 | Disconnect-PnPOnline 414 | } 415 | 416 | return $siteListItem 417 | } 418 | 419 | function AddOrUpdateSiteEntry() 420 | { 421 | Param 422 | ( 423 | [parameter(Mandatory=$true)][string]$siteRelativeURL, 424 | [parameter(Mandatory=$true)][string]$siteTitle, 425 | [parameter(Mandatory=$false)]$parentURL, 426 | [parameter(Mandatory=$false)][string]$breadcrumbHTML, 427 | [parameter(Mandatory=$false)][string]$brandingDeploymentType, 428 | [parameter(Mandatory=$false)]$selectedTheme, 429 | [parameter(Mandatory=$false)]$siteTemplateName, 430 | [parameter(Mandatory=$false)]$siteCreatedDate, 431 | [parameter(Mandatory=$false)]$spSubWebs 432 | ) 433 | 434 | Write-Output "Adding $($siteTitle) to the $($SiteListName) list. Please wait..." 435 | 436 | [hashtable]$newListItemValues = PrepareSiteItemValues -siteRelativeURL $siteRelativeURL -siteTitle $siteTitle -parentURL $parentURL ` 437 | -breadcrumbHTML $breadcrumbHTML -brandingDeploymentType $brandingDeploymentType -selectedThemeName $selectedTheme.name ` 438 | -masterPageName $selectedTheme.masterPage -siteTemplateName $siteTemplateName -siteCreatedDate $siteCreatedDate 439 | 440 | 441 | $existingItem = GetSiteEntry -siteRelativeURL $siteRelativeURL -disconnect 442 | 443 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 444 | if ($existingItem) 445 | { 446 | Write-Output "$($siteTitle) exists in $($SiteListName) list. Updating..." 447 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Set-PnPListItem -Identity $existingItem.Id -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 448 | } 449 | else 450 | { 451 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Add-PnPListItem -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 452 | } 453 | 454 | if ($newListItem) 455 | { 456 | Write-Output "The site $($siteTitle) was added to the $($SiteListName) list successfully" 457 | } 458 | 459 | # ----------- 460 | # Subsites 461 | # ----------- 462 | if ($spSubWebs) 463 | { 464 | Write-Output "Adding subsites of $($siteTitle) to $($SiteListName). Please wait..." 465 | foreach ($spSubWeb in $spSubWebs) 466 | { 467 | [string]$siteRelativeURL = $spSubWeb.ServerRelativeUrl 468 | [string]$siteTitle = $spSubWeb.Title 469 | $siteCreatedDate = $spSubWeb.Created.Date 470 | 471 | [string]$parentURL = GetParentWebURL -siteURL "$($WebAppURL)$($siteRelativeURL)" -disconnect 472 | 473 | [string]$breadcrumbHTML = GetBreadcrumbHTML -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentURL $parentURL 474 | 475 | [hashtable]$newListItemValues = PrepareSiteItemValues -siteRelativeURL $siteRelativeURL -siteTitle $siteTitle -parentURL $parentURL ` 476 | -breadcrumbHTML $breadcrumbHTML -brandingDeploymentType $brandingDeploymentType -selectedThemeName $selectedTheme.name ` 477 | -masterPageName (Split-Path $spSubWeb.CustomMasterUrl -Leaf) -siteTemplateName $siteTemplateName -siteCreatedDate $siteCreatedDate 478 | 479 | $existingItem = GetSiteEntry -siteRelativeURL $siteRelativeURL -disconnect 480 | 481 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 482 | if ($existingItem) 483 | { 484 | Write-Output "$($siteTitle) exists in $($SiteListName) list. Updating..." 485 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Set-PnPListItem -Identity $existingItem.Id -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 486 | } 487 | else 488 | { 489 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Add-PnPListItem -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 490 | } 491 | 492 | if ($newListItem) 493 | { 494 | Write-Output "The site $($siteTitle) was added to the $($SiteListName) list successfully" 495 | } 496 | } 497 | } 498 | } 499 | 500 | function AddSiteEntry() 501 | { 502 | Param 503 | ( 504 | [parameter(Mandatory=$true)][string]$siteRelativeURL, 505 | [parameter(Mandatory=$true)][string]$siteTitle, 506 | [parameter(Mandatory=$false)]$parentURL, 507 | [parameter(Mandatory=$false)][string]$breadcrumbHTML, 508 | [parameter(Mandatory=$false)][string]$brandingDeploymentType, 509 | [parameter(Mandatory=$false)]$selectedTheme, 510 | [parameter(Mandatory=$false)]$siteTemplateName, 511 | [parameter(Mandatory=$false)]$siteCreatedDate, 512 | [parameter(Mandatory=$false)]$spSubWebs 513 | ) 514 | 515 | $existingItem = GetSiteEntry -siteRelativeURL $siteRelativeURL -disconnect 516 | 517 | if (!$existingItem) 518 | { 519 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 520 | 521 | Write-Output "Adding $($siteTitle) to the $($SiteListName) list. Please wait..." 522 | 523 | [hashtable]$newListItemValues = PrepareSiteItemValues -siteRelativeURL $siteRelativeURL -siteTitle $siteTitle -parentURL $parentURL ` 524 | -breadcrumbHTML $breadcrumbHTML -brandingDeploymentType $brandingDeploymentType -selectedThemeName $selectedTheme.name ` 525 | -masterPageName $selectedTheme.masterPage -siteTemplateName $siteTemplateName -siteCreatedDate $siteCreatedDate -subSite $false 526 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Add-PnPListItem -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 527 | 528 | 529 | if ($newListItem) 530 | { 531 | Write-Output "The site $($siteTitle) was added to the $($SiteListName) list successfully" 532 | } 533 | 534 | # ----------- 535 | # Subsites 536 | # ----------- 537 | if ($spSubWebs) 538 | { 539 | Write-Output "Adding subsites of $($siteTitle) to $($SiteListName). Please wait..." 540 | foreach ($spSubWeb in $spSubWebs) 541 | { 542 | [string]$siteRelativeURL = $spSubWeb.ServerRelativeUrl 543 | [string]$siteTitle = $spSubWeb.Title 544 | $siteCreatedDate = $spSubWeb.Created.Date 545 | 546 | [string]$parentURL = GetParentWebURL -siteURL "$($WebAppURL)$($siteRelativeURL)" -disconnect 547 | 548 | [string]$breadcrumbHTML = GetBreadcrumbHTML -siteRelativeURL $SiteRelativeURL -siteTitle $siteTitle -parentURL $parentURL 549 | 550 | [hashtable]$newListItemValues = PrepareSiteItemValues -siteRelativeURL $siteRelativeURL -siteTitle $siteTitle -parentURL $parentURL ` 551 | -breadcrumbHTML $breadcrumbHTML -brandingDeploymentType $brandingDeploymentType -selectedThemeName $selectedTheme.name ` 552 | -masterPageName (Split-Path $spSubWeb.CustomMasterUrl -Leaf) -siteTemplateName $siteTemplateName -siteCreatedDate $siteCreatedDate -subSite $true 553 | 554 | $existingItem = GetSiteEntry -siteRelativeURL $siteRelativeURL -disconnect 555 | 556 | Helper-Connect-PnPOnline -Url $SitesListSiteURL 557 | if ($existingItem) 558 | { 559 | Write-Output "$($siteTitle) exists in $($SiteListName) list. Updating..." 560 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Set-PnPListItem -Identity $existingItem.Id -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 561 | } 562 | else 563 | { 564 | [Microsoft.SharePoint.Client.ListItem]$newListItem = Add-PnPListItem -List $SiteListName -Values $newListItemValues -ContentType "EUM Site Collection List" 565 | } 566 | 567 | if ($newListItem) 568 | { 569 | Write-Output "The site $($siteTitle) was added to the $($SiteListName) list successfully" 570 | } 571 | } 572 | } 573 | } 574 | else 575 | { 576 | Write-Output "The site $($siteTitle) exists in $($SiteListName) list. Skipping..." 577 | } 578 | } -------------------------------------------------------------------------------- /SiteTemplates/Client-Template-Template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 30 253 | 254 | clienttemplates.js 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 30 273 | clienttemplates.js 274 | 275 | 276 | 277 | 279 | 280 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 30 311 | 312 | clienttemplates.js 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 30 331 | 332 | clienttemplates.js 333 | 334 | 335 | 336 | 338 | 339 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------