NetoMeter - ScreenCasts and Video How To's
NetoMeter BlogFree Screencasts Latest Screencasts Office 365Video: How to Connect to Exchange Online Using Remote PowerShell. Adding a Domain and Bulk Modifying Email Addresses.

Video: How to Connect to Exchange Online Using Remote PowerShell. Adding a Domain and Bulk Modifying Email Addresses.

 

Free Video :Office 365 Administration
Bulk Operations and Common Tasks

  • Add a Domain to Office 365 and Configure DNS Records
  • Edit PowerShell Profile and Automate Remote Connection to Office 365 and Exchange Online
  • Bulk Modify User Principal Names and Email Addresses

Office 365
Admin Center is, usually, the preferred interface for performing administrative tasks. When it comes to bulk operations, though, PowerShell is the way to go. We’ve already demonstrated how to connect to Office 365 using remote PowerShell, and how to bulk create, license, and modify users. For your convenience, we’ve also demonstrated how to automate the process of connecting to Office 365 by creating/editing your PowerShell profile.

In this video, we go through the next logical steps:

  • Adding a domain
  • Configuring PowerShell for Remote Connection to Exchange Online
  • Exporting the Existing User Accounts to a CSV file
  • Bulk Editing User Principal Names and E-mail Addresses
===================
bulk-change-UPN.ps1
===================
# Import data from a CSV file and store it in a variable "$data"
$data = import-csv $args[0]
$Old_Domain = "NetoMeter.onmicrosoft.com"
$New_Domain = "3demo.com"
foreach ($i in $data)
{
$UPN = $i.UserPrincipalName
$New_UPN = $UPN -replace $Old_Domain, $New_Domain
Set-MsolUserPrincipalName -UserPrincipalName $UPN -NewUserPrincipalName $New_UPN
}

Again, we’ll be using PowerShell for the tasks that require performing bulk operations.
You can download the Text File with CommandsOffice-365-Commands.txt Office-365-Commands.txt and PowerShell scriptbulk-change-UPN.ps1 bulk-change-UPN.ps1 that we are using in the demo.

Comments are closed.

RSS Latest Blog Posts

Netometer@Twitter