Link to home
Start Free TrialLog in
Avatar of vmich
vmichFlag for United States of America

asked on

Command needed to run to show all users that are not showing with the “get-mailbox” command

We have user accounts with mailboxes that are not showing in “Get-Mailbox command but they do show in “Get-ADUser and the users do have local mailboxes
So I need a way to  find all users that are not showing with the “get-mailbox” command
So if someone could show me what command I need to run to obtain this info.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vmich

ASKER

Alex I am not a scripting expert so could you show me what you are suggesting?
Avatar of vmich

ASKER

Also as I mentioned up top, there are users that have local mailboxes that do not show up for some reason when we run the get-mailbox command, but they do show up when we run the get-aduser.
So I just need a good way to find all of these users that don't show up with the get-mailbox command.
Anything that I can run to show these?
Hope this make better sense and sorry if at first I was not clear on what I needed.
Thanks
Set-AdServerSettings -ViewEntireForest $True

Shows all the mailboxes in your exchange environment, use this to start with, so in your exchange shell. Copy and paste the above command and then run your get-mailbox command.

What exchange are you running?
Avatar of vmich

ASKER

exchange 2016
Is there a special command to run with the get-mailbox command meaning what switches do I need.
There isn't, so please read this carefully

Run

Set-AdServerSettings -ViewEntireForest $True

then

get-mailbox

Then come back and tell me if that got the mailboxes you were expecting.
Avatar of vmich

ASKER

Alex we have more than 1000 users. What do I need to add to this for unlimited users to be seen?
Have you done what I asked or not? I.E

Set-AdServerSettings -ViewEntireForest $True

Open in new window


Also

Get-Mailbox -ResultSize unlimited 

Open in new window


will help too