I got the following error when Visual Studio Code started up reporing that a the package installer needed updating It tried to run the follwing command. This produced the following Error. After looking around it turned out to be that TLS 1.2 needed to be enabled.
In Exchange 2010/2013 you might find yourself in a position to need to export disconnected mailboxes. Say if someone leaves and their account is deleted, leaving the mailbox in a ‘Disabled’ state for the retention period. First thing you need to do is find the mailbox as it won’t appear when it’s disconnected. Get-MailboxStatistics will do this.