Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to determine whether a user is on O365 or on a local Exchange server

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The article I refer to is this link.

Https://mikefrobbins.com/2018/08/02/determine-if-a-mailbox-is-on-premises-or-in-office-365-with-powershell/

Mike Robbins is a very powerful Daniel.

My current company is to migrate Exchange mailboxes to the O365 platform, and then use the international version of E3 certificate. One of the requirements I got is to count the users who have moved to the cloud and those who have not. Because this operation is that a lot of people are doing the migration, anyway, it has been moved to chaos.

I think Get-MsolUser is a good command, but my permissions are limited and I can't use it. I thought of the following ways to achieve this demand.

First, I first go to the management side of O365 and export all the users with E3 certificates

Second, you can actually write a script and check one by one whether the user email data is really on O365. Some users give the specified E3 certificate directly for some reason, but the data is not on it. The order to check is:

PS C:\ > Get-Mailbox-Identity domain account

Name Alias Database ProhibitSendQuota ExternalDirectoryObjectId

Domain account_c2203f1a99 domain account NAMPR14DG007-db061 99 GB (106, 300, 44. E55244b4-be94-4be0-9e4...

There will be a database information, which means that users who move to the cloud will have a database on O365. What you don't have is not moved to the cloud.

Of course, in order to be foolproof, proof of the results of other orders is needed.

For example:

Get-Recipient

PS C:\ > Get-Recipient-Identity josh.jin

Name RecipientType

Jin, Josh_c2203f1a99 UserMailbox

If the RecipientType is UserMailbox, it is the user of O365, and if it is MailUser, it has not been migrated.

Then go to your own Exchange server and run the following command:

Get-Mailbox-Identity domain account | select-object Database,ArchiveDatabase

The local mail database where the user is located is displayed here.

After the above verification, we can find out whether the user is on O365 or in the local mail database.

To do system management, you should not only be familiar with those graphical interfaces, but also be familiar with Powershell. In other words, if you do Microsoft system maintenance, you will not be a qualified administrator if you will not Powershell.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report