Checking Exchange GUID while migrating mailbox Exchange to Office365

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

Vamshi B

Recent Posts

How to install Firefox browser using Powershell

How to install of FireFox browser using PowerShell Sometimes you would like to install Firefox…

2 years ago

How to install chrome with Powershell?

Quick way to install chrome on windows with Powershell? Launch the Powershell and run below…

2 years ago

How to Fix PowerShell Script Not Digitally Signed Error?

How to Fix PowerShell Script Not Digitally Signed Error? When a script with a .ps1…

2 years ago

Powershell Cheat Sheet for beginners

Powershell Cheat Sheet for beginners PowerShell has become something of an ace in the hole…

3 years ago

Can you use Linux commands in Powershell?

Today we discuss one of a few questions a lot of sysadmins and IT Admins…

3 years ago

Backing Up an SQL Database with PowerShell

Backing Up an SQL Database with PowerShell Before making any changes in the production environment,…

3 years ago

This website uses cookies.