Get mailbox permiss...
 
Notifications
Clear all

Get mailbox permission returns error

3 Posts
2 Users
0 Reactions
1,084 Views
Posts: 13
Topic starter
(@jacolex)
Eminent Member
Joined: 8 years ago

Hello

I noticed strange behavior viewing mailbox permission of few users, which throws error:

Server was unable to process request. ---> Invalid URI: The hostname could not be parsed. ---> Invalid URI: The hostname could not be parsed.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.Providers.Exchange.ExchangeServer.GetMailboxPermissions(String organizationId, String accountName)
at SolidCP.EnterpriseServer.ExchangeServerController.GetMailboxPermissions(Int32 itemId, Int32 accountId)

 

So I go to Exchange Powershell console and call the cmdlet from solidcp event viewer:
Get-ADPermission -Identity 'user' -DomainController 'dc'

WARNING: An unexpected error has occurred and a Watson dump is being generated: Invalid URI: The hostname could not be
parsed.
Invalid URI: The hostname could not be parsed.
+ CategoryInfo          : NotSpecified: (:) [Get-ADPermission], UriFormatException
+ FullyQualifiedErrorId : System.UriFormatException,Microsoft.Exchange.Management.RecipientTasks.GetADPermission
+ PSComputerName        : dc

 

I checked then modified cmdlet:

Get-Mailbox -Identity 'user' -DomainController 'dc' | Get-ADPermission

And this cmdlet runs correctly. I asked then on technet forum of this behavior and I received answers, that it might be problems using alias as identity.

So I suggest to use above cmdlet with pipeline in source code.

2 Replies
Posts: 1995
Admin
(@m-tiggelaar)
Noble Member
Joined: 9 years ago

Hmm, in general both commands should work.

one main question though for your prefered domain controller: can you make sure you set the fqdn?  so myaddc1.mydomain.local , not just the netbios name?

Regards,

Marco

Reply
Posts: 13
Topic starter
(@jacolex)
Eminent Member
Joined: 8 years ago

Yes, it's full fqdn of domain controller's name. I tried with other dc, but the same result...

Reply
Share: