-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Running the script below.
When statement is reached; Connect-SPOSite runs and the script stops
It the Connect-SPOSite is then commented out the script runs to completion.
Or am I being dumb?
Add-Type -Path "\vmware-host\Shared Folders\projects\ProductDevelopment\LiteBrand\Source\LiteCreation\Microsoft.SharePoint.Client.dll"
Add-Type -Path "\vmware-host\Shared Folders\projects\ProductDevelopment\LiteBrand\Source\LiteCreation\Microsoft.SharePoint.Client.Runtime.dll"
Add-Type -Path "\vmware-host\Shared Folders\projects\ProductDevelopment\LiteBrand\Source\LiteCreation\Microsoft.SharePoint.Client.Taxonomy.dll"
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
Import-Module "C:\Program Files (x86)\Falchion Consulting, LLC\SharePoint Online PowerShell\Lapointe.SharePointOnline.PowerShell\Lapointe.SharePointOnline.PowerShell.dll" -DisableNameChecking
$webappurl = "https://me.sharepoint.com"
$adminUrl = "https://me-admin.sharepoint.com"
$owner = "[email protected]"
$adminuser = "[email protected]"
Script will exist after this; must run once and then comment out
connect to SharePoint Online
Lapointe.SharePointOnline.PowerShell\Connect-SPOSite -Url $webappurl"/sites/Inform" -Credential $adminuser
$TermStore = Get-SPOTermStore -Identity 0
New-SPOTermGroup -TermStore 0 -Name "Main"