Solved

looking for a script that can identify if user is on premise or cloud

Posted on 2016-11-01
3
27 Views
Last Modified: 2016-11-22
have a list of UPN's or email addresses in a csv format and looking to generate an output with location of mailbox... i.e prem or on cloud.
0
Comment
Question by:ARM2009
  • 2
3 Comments
 
LVL 39

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 100 total points (awarded by participants)
ID: 41869654
Simply look at the recipient type details for the object on-prem, it should give you the relevant information.
0
 
LVL 14

Accepted Solution

by:
Todd Nelson earned 400 total points (awarded by participants)
ID: 41870974
Unfortunately, Get-Mailbox will only get you a list of on premises mailboxes and not a list of Exchange Online mailboxes; and vice versa with Get-RemoteMailbox.

Therefore, you will need to use Get-Recipient to provide the informaiton you are looking for.  Similar to this...

Get-RecipientType | Select DisplayName,Alias,RecipientType,RecipientTypeDetails | Export-Csv C:\RecipientType.csv -NoTypeInformation

Open in new window

0
 
LVL 14

Expert Comment

by:Todd Nelson
ID: 41897216
Sufficient information provided to obtain answer.
0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now