Get-PnPConnection

Returns the current context

Description

Returns a PnP PowerShell Connection for use with the -Connection parameter on other cmdlets.

Examples

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

$ctx = Get-PnPConnection

This will put the current connection for use with the -Connection parameter on other cmdlets.