Move from Office 365 to Onpremise in a Hybrid enviroment

import-module msonline(install-module msonline)$O365CREDS = Get-Credential$ONPREMCREDS = Get-Credential #used UPN Username$SESSION = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365CREDS -Authentication Basic -AllowRedirectionImport-PSSession $SESSIONConnect-MsolService -Credential $O365CREDS#You can run these commands, to check…