Skip to content

Connect-SPOSite not working with Get-SPOTermStore #1

@davidjamesbc

Description

@davidjamesbc

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions