Get-PnPContext

Returns the current context

Description

Returns a Client Side Object Model context

Examples

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

$ctx = Get-PnPContext

This will put the current context in the $ctx variable.

Outputs

Microsoft.SharePoint.Client.ClientContext