Powershell issue when execute in the Exchange server.


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
    + PSComputerName        : exchange-excas004.corp.net

Please kindly advise how to resolve this issue.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

alanlam123Author Commented:
Hi thanks

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

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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

repadmin /replsummary
Nathan HawkinsTechnical Lead - Network SecurityCommented:
Or you can just restart the remote registry service on the CA Servers and then execute your Get command...
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
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


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
alanlam123Author Commented:
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

From novice to tech pro — start learning today.