Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Disconnect-SPOService

Disconnect-SPOService

microsoft.online.sharepoint.powershell.dll, microsoft.online.sharepoint.powershell-1.dll

Synopsis

Disconnects from a SharePoint Online service.

Syntax

Disconnect-SPOService [<CommonParameters>]

Detailed Description

The Disconnect-SPOService cmdlet explicitly disconnects a previously created SharePoint Online service connection.

Global administrators can disconnect the service by running the Disconnect-SPOService cmdlet or by running the Connect-SPOService cmdlet to initiate another connection. For more information, see Connect-SPOService.

Even after a connection is terminated, operations that were started before the connection is terminated will run to completion. In other words, long-running operations will not be terminated by running the Disconnect-SPOService cmdlet or the Connect-SPOService cmdlet.

You must be a SharePoint Online global administrator to run the cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at http://go.microsoft.com/fwlink/p/?LinkId=251832 (http://go.microsoft.com/fwlink/p/?LinkId=251832).

Parameters

Input Type

Return Type

Notes

None

Examples

--------EXAMPLE--------

This example explicitly disconnects a previously created SharePoint Online service connection.

C:\PS>Disconnect-SPOService

Introduction to the SharePoint Online management shell
Set up the SharePoint Online Management Shell Windows PowerShell environment
Get-SPOAppErrors
Connect-SPOService