pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
989 stars 662 forks source link

Fixed issue with Disconnect-PnPOnline not cleaning up certificate #2755

Closed KoenZomers closed 4 years ago

KoenZomers commented 4 years ago

Type

Related Issues?

Could play a role in some degree to https://github.com/pnp/PnP-PowerShell/issues/2752

What is in this Pull Request ?

In Disconnect-PnPOnline -Connection $variable, if having connected using $variable = Connect-PnPOnline -CertificatePath -ReturnConnection, it would not clean up the certificate on that connection instance, but instead try to do it on the current connection context. That has been fixed in this PR.

wobba commented 4 years ago

Thank you @KoenZomers!