Powershell issue when execute in the Exchange server.

Hi

Good day

I having issue to execute the following command , when run the powershell in the EMS from the exchange server.

get-mailbox -Identity Paul.Knight | FL DefaultPublicFolderMailbox

And the return error message show in the following

The operation couldn't be performed because object 'Paul.Knight' couldn't be found on 'DC001.corp.net'.
    + CategoryInfo          : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=WJLTD-EXMBX004,RequestId=f07fd681-d88a-403f-9993-43cd4171939d,TimeStamp=11/05/20
   15 3:13:00 AM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 5BA2F9A5,Microsoft.Exchange.Management.R
  ecipientTasks.GetMailbox
    + PSComputerName        : exchange-excas004.corp.net

Please kindly advise how to resolve this issue.

Cheers
alanlam123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alanlam123Author Commented:
Hi thanks

I am not able to access the URL link and please resend.

Thanks
0
alanlam123Author Commented:
Hi thanks

I am not able to access the URL link and please resend.

Thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

suriyaehnopCommented:
Are you able to run Get-Mailbox -Identity Paul.Knight? Is this Paul.Knight's mailbox does exist?
0
Nathan HawkinsTechnical Lead - Network SecurityCommented:
Try restarting the remote registry service on the CA Servers
0
Viral RathodConsultantCommented:
It most likely a replication issue between DCs ,check replication using following commands.

repadmin /replsummary
0
Nathan HawkinsTechnical Lead - Network SecurityCommented:
Or you can just restart the remote registry service on the CA Servers and then execute your Get command...
0
suriyaehnopCommented:
If you find the user is mailbox user and you can find the user in a specific DC. You can run this:

Get-Mailbox -Identity Paul.Knight -DomainController DCName | FL DefaultPublicFolderMailbox
0
Guy LidbetterCommented:
Hi Alan,

You may have the identity format incorrect. Try the following code and see if you get a hit

Get-Mailbox -Filter {name -like "*knight*"} | Ft name, DefaultPublicFolderMailbox

Open in new window


Regards

Guy
0
alanlam123Author Commented:
Hi folks

thanks for the great help and issued was being resolved ,that i had overlooked without the following command;


Set-AdServerSettings -ViewEntireForest $True
0
alanlam123Author Commented:
nil
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.