spo-site-collection-provision-with-powershell-script
v0.0.3
Published
PowerShell Script to create a site collection in SharePoint online
Downloads
5
Readme
PowerShell SharePoint Online Site Provisioning
The spo-siteprovision script can be used to create a SharePoint online site collection with Modern Design. It also adds site owners to the site's owners group.
Getting Started
Install the package via NPM by opening a command prompt, navigating to the project directory, and executing the npm command shown above (npm install spo-siteprovision). You should use the --save switch to save the package information to your package.json file. EG: npm install spo-siteprovisionwithpowershell --save
Running the Script
Open up the PowerShell ISE or Visual Studio Code and add the required SharePoint PowerShell Plug-ins
Run the following command to load the PowerShell module, authenticate and create a SharePoint online site collection.
Import-Module .\spo-siteprovision.psd1
Create-SPOSiteCollection -SiteUrl $url -SiteTitle $title -AdminSiteUrl $tenantAdminSite -SiteCollectionAdmin $userName -PrimaryOwner $owner1 -SecondaryOwner $owner2 -Template "STS#3" -TenantAdmin $userName -Password $securePass2
Versioning
We use SemVer for versioning.
Authors
- Kumneger Abegaz - Initial work