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
How to install of FireFox browser using PowerShell Sometimes you would like to install Firefox…
Quick way to install chrome on windows with Powershell? Launch the Powershell and run below…
How to Fix PowerShell Script Not Digitally Signed Error? When a script with a .ps1…
Powershell Cheat Sheet for beginners PowerShell has become something of an ace in the hole…
Today we discuss one of a few questions a lot of sysadmins and IT Admins…
Backing Up an SQL Database with PowerShell Before making any changes in the production environment,…
This website uses cookies.