Checking Exchange GUID while migrating mailbox Exchange to Office365
Below commands can be really helpful while exchange 2010 to office 365 migration.
Below command to import the csv file with names and email addresses of users to be checked.
$CSV = Import-CSV C:\Temp\spotcheck.csv
Below command to display names, email addresses,GUID etc of users to be checked.
$CSV | foreach { get-mailuser -identity $_.mail | fl DisplayName, WindowsEmailAddress, PrimarySmtpAddress, RecipientType, ExternalEmailAddress, ExchangeGuid}
Below command to display names, email addresses,GUID etc of users to be checked exported to a csv file
$CSV | foreach { get-mailuser -identity $_.mail} | select DisplayName, WindowsEmailAddress, RecipientType, ExternalEmailAddress, ExchangeGuid| Export-CSV C:\Temp\SpotCheck_output.csv –NoTypeInformation