spo-site-collection-provision-with-powershell-script

0.0.3 • Public • Published

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

License

Readme

Keywords

none

Package Sidebar

Install

npm i spo-site-collection-provision-with-powershell-script

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

13.8 kB

Total Files

5

Last publish

Collaborators

  • kumneger