Disconnect-PnPOnline

Disconnects the context

Syntax

Disconnect-PnPOnline
          [-Connection <SPOnlineConnection>]

Description

Disconnects the current context and requires you to build up a new connection in order to use the Cmdlets again. Using Connect-PnPOnline to connect to a different site has the same effect.

Examples

------------------EXAMPLE 1------------------

Disconnect-PnPOnline

This will disconnect you from the server.

Parameters

-Connection

Connection to be used by cmdlet

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False