Solved

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

Posted on 2016-11-01
3
41 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 40

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 15

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 15

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
In-place Upgrading Dirsync to Azure AD Connect
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

830 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