Skip to content

Instantly share code, notes, and snippets.

@chrisobriensp
Created January 14, 2019 17:31
Show Gist options
  • Save chrisobriensp/3def122540ea192f6fe0dc83496129e8 to your computer and use it in GitHub Desktop.
Save chrisobriensp/3def122540ea192f6fe0dc83496129e8 to your computer and use it in GitHub Desktop.
Registers a SharePoint site script
$creds = Get-Credential
$tenantAdminUrl = "https://[TENANT]-admin.sharepoint.com"
Connect-SPOService -Url $tenantAdminUrl -Credential $creds
Get-Content 'C:\[PATH]\COB_ProjectSite.json' -Raw | Add-SPOSiteScript -Title "COB project site script"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment