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.
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.