Quantcast
Channel: Exchange Server 2013 - Mail Flow and Secure Messaging forum
Viewing all articles
Browse latest Browse all 3660

test-webservicesconnectivity returns 401 unauthorized

$
0
0

Hi,

I am testing EWS, while testing from any CAS server it returns 401 even I entered credentials


[PS] C:\Windows\system32>$cred = Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
[PS] C:\Windows\system32>Test-OutlookWebServices  -MailboxCredential $cred -Verbose |fl
VERBOSE: [08:44:09.099 GMT] Test-OutlookWebServices : Runspace context: Executing user: GOYS.ORG.BH/Service
Accounts/Administrator, Executing user organization: , Current organization: , RBAC-enabled: Enabled.
VERBOSE: [08:44:09.178 GMT] Test-OutlookWebServices : Active Directory session settings for 'Test-OutlookWebServices'
are: View Entire Forest: 'False', Default Scope: 'GOYS.ORG.BH', Configuration Domain Controller:
'HQ-SRV-DC01.GOYS.ORG.BH', Preferred Global Catalog: 'HQ-SRV-DC1.GOYS.ORG.BH', Preferred Domain Controllers: '{
HQ-SRV-DC1.GOYS.ORG.BH }'
VERBOSE: [08:44:09.178 GMT] Test-OutlookWebServices : Beginning processing Test-OutlookWebServices
VERBOSE: [08:44:09.178 GMT] Test-OutlookWebServices : Instantiating handler with index 0 for cmdlet extension agent"Admin Audit Log Agent".
VERBOSE: [08:44:09.193 GMT] Test-OutlookWebServices : Source server: HQ-SRV-EMB02.GOYS.ORG.BH
VERBOSE: [08:44:09.193 GMT] Test-OutlookWebServices : Source site: GOYS.ORG.BH/Configuration/Sites/HQ
VERBOSE: [08:44:09.193 GMT] Test-OutlookWebServices : Current ScopeSet is: { Recipient Read Scope: {{, }}, Recipient
Write Scopes: {{, }}, Configuration Read Scope: {{, }}, Configuration Write Scope(s): {{, }, }, Exclusive Recipient
Scope(s): {}, Exclusive Configuration Scope(s): {} }
VERBOSE: [08:44:09.334 GMT] Test-OutlookWebServices : Client access monitoring user:
GOYS.ORG.BH/Users/extest_0adda60d403c4
VERBOSE: [08:44:09.334 GMT] Test-OutlookWebServices : Client access monitoring user primary SMTP address:
extest_0adda60d403c4@GOYS.GOV.BH
VERBOSE: [08:44:09.334 GMT] Test-OutlookWebServices : Client access monitoring organization:
VERBOSE: [08:44:09.349 GMT] Test-OutlookWebServices : Found Service Connection Point 'HQ-SRV-ECH01\HQ-SRV-ECH01' by
site 'HQ' with URL 'https://mail.goys.gov.bh/autodiscover/autodiscover.xml'.
VERBOSE: [08:44:09.349 GMT] Test-OutlookWebServices : Found Autodiscover URL
'https://mail.goys.gov.bh/autodiscover/autodiscover.xml' by email address 'extest_0adda60d403c4@GOYS.GOV.BH'.
VERBOSE: Testing Outlook Web Services.
VERBOSE: [08:44:09.349 GMT] Test-OutlookWebServices : Resolved current organization: .
VERBOSE: [08:44:09.349 GMT] Test-OutlookWebServices : Autodiscover connecting to
'https://mail.goys.gov.bh/autodiscover/autodiscover.xml'.
VERBOSE: [08:44:09.349 GMT] Test-OutlookWebServices : Test account: extest_0adda60d403c4@GOYS.ORG.BH Password: ******
VERBOSE: [08:44:09.428 GMT] Test-OutlookWebServices : Autodiscover request:
User-Agent: HQ-SRV-EMB02/Test-OutlookWebServices/extest_0adda60d403c4@GOYS.GOV.BH
Content-Type: text/xml; charset=utf-8
Authorization: Negotiate
TlRMTVNTUAADAAAAGAAYALAAAABSAVIByAAAAAAAAABYAAAAQABAAFgAAAAYABgAmAAAABAAEAAaAgAAFYKI4gYC8CMAAAAPJHHlKOgk6UZRbdhQCDvatGU
AeAB0AGUAcwB0AF8AMABhAGQAZABhADYAMABkADQAMAAzAGMANABAAEcATwBZAFMALgBPAFIARwAuAEIASABIAFEALQBTAFIAVgAtAEUATQBCADAAMgAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAASl5EdVFxHDWuCjm6FoqmhAQEAAAAAAACqHtrRCwPQAUG85RApgBmdAAAAAAIACABHAE8AWQBTAAEAGABIAFEALQBTA
FIAVgAtAEUAQwBIADAAMgAEABYARwBPAFkAUwAuAE8AUgBHAC4AQgBIAAMAMABIAFEALQBTAFIAVgAtAEUAQwBIADAAMgAuAEcATwBZAFMALgBPAFIARwAu
AEIASAAFABYARwBPAFkAUwAuAE8AUgBHAC4AQgBIAAcACACqHtrRCwPQAQYABAACAAAACAAwADAAAAAAAAAAAAAAAABAAAAutZ3cSX7QbqIVbpVmTfAle2G
Sio1Kb+TPIFyplUES4woAEAATdky410WERnoXMSOlmJtzCQAqAEgAVABUAFAALwBtAGEAaQBsAC4AZwBvAHkAcwAuAGcAbwB2AC4AYgBoAAAAAAAAAAAAAA
AAAGRcsv5pH0V4Z33yviYWQyA=
Host: mail.goys.gov.bh
Content-Length: 471
Expect: 100-continue
VERBOSE: [08:44:09.428 GMT] Test-OutlookWebServices : Autodiscover request:<?xml version="1.0"?><Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>extest_0adda60d403c4@GOYS.GOV.BH</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableRe
sponseSchema></Request></Autodiscover>
VERBOSE: [08:44:09.428 GMT] Test-OutlookWebServices : Autodiscover response:
request-id: b58d9917-d3b2-4c2a-92b3-87f12414d4a1
Server: Microsoft-IIS/8.0
WWW-Authenticate: Basic realm="mail.goys.gov.bh",Negotiate,NTLM
X-Powered-By: ASP.NET
X-FEServer: HQ-SRV-ECH02
Date: Tue, 18 Nov 2014 08:44:08 GMT
Content-Length: 0
VERBOSE: [08:44:09.428 GMT] Test-OutlookWebServices : Autodiscover response:
System.Net.WebException: The remote server returned an error: (401) Unauthorized.
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.ServiceValidatorBase.InternalInvoke()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.ServiceValidatorBase.Invoke()


RunspaceId          : cbaa3808-fb36-4066-af2d-f81d1a6ec4ae
Source              : HQ-SRV-EMB02.GOYS.ORG.BH
ServiceEndpoint     : mail.goys.gov.bh
Scenario            : AutoDiscoverOutlookProvider
ScenarioDescription : Autodiscover: Outlook Provider
Result              : Failure
Latency             : 61
Error               : System.Net.WebException: The remote server returned an error: (401) Unauthorized.
                         at System.Net.HttpWebRequest.GetResponse()
                         at
                      Microsoft.Exchange.Management.SystemConfigurationTasks.ServiceValidatorBase.InternalInvoke()
                         at Microsoft.Exchange.Management.SystemConfigurationTasks.ServiceValidatorBase.Invoke()
Verbose             : [2014-11-18 08:44:09Z] Autodiscover connecting to
                      'https://mail.goys.gov.bh/autodiscover/autodiscover.xml'.
                      [2014-11-18 08:44:09Z] Test account: extest_0adda60d403c4@GOYS.ORG.BH Password: ******
                      [2014-11-18 08:44:09Z] Autodiscover request:
                      User-Agent: HQ-SRV-EMB02/Test-OutlookWebServices/extest_0adda60d403c4@GOYS.GOV.BH
                      Content-Type: text/xml; charset=utf-8
                      Authorization: Negotiate TlRMTVNTUAADAAAAGAAYALAAAABSAVIByAAAAAAAAABYAAAAQABAAFgAAAAYABgAmAAAABAA
                      EAAaAgAAFYKI4gYC8CMAAAAPJHHlKOgk6UZRbdhQCDvatGUAeAB0AGUAcwB0AF8AMABhAGQAZABhADYAMABkADQAMAAzAGMAN
                      ABAAEcATwBZAFMALgBPAFIARwAuAEIASABIAFEALQBTAFIAVgAtAEUATQBCADAAMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
                      ASl5EdVFxHDWuCjm6FoqmhAQEAAAAAAACqHtrRCwPQAUG85RApgBmdAAAAAAIACABHAE8AWQBTAAEAGABIAFEALQBTAFIAVgA
                      tAEUAQwBIADAAMgAEABYARwBPAFkAUwAuAE8AUgBHAC4AQgBIAAMAMABIAFEALQBTAFIAVgAtAEUAQwBIADAAMgAuAEcATwBZ
                      AFMALgBPAFIARwAuAEIASAAFABYARwBPAFkAUwAuAE8AUgBHAC4AQgBIAAcACACqHtrRCwPQAQYABAACAAAACAAwADAAAAAAA
                      AAAAAAAAABAAAAutZ3cSX7QbqIVbpVmTfAle2GSio1Kb+TPIFyplUES4woAEAATdky410WERnoXMSOlmJtzCQAqAEgAVABUAF
                      AALwBtAGEAaQBsAC4AZwBvAHkAcwAuAGcAbwB2AC4AYgBoAAAAAAAAAAAAAAAAAGRcsv5pH0V4Z33yviYWQyA=
                      Host: mail.goys.gov.bh
                      Content-Length: 471
                      Expect: 100-continue
                      [2014-11-18 08:44:09Z] Autodiscover request:<?xml version="1.0"?><Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>extest_0adda60d403c4@GOYS.GOV.BH</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/response
                      schema/2006a</AcceptableResponseSchema></Request></Autodiscover>
                      [2014-11-18 08:44:09Z] Autodiscover response:
                      request-id: b58d9917-d3b2-4c2a-92b3-87f12414d4a1
                      Server: Microsoft-IIS/8.0
                      WWW-Authenticate: Basic realm="mail.goys.gov.bh",Negotiate,NTLM
                      X-Powered-By: ASP.NET
                      X-FEServer: HQ-SRV-ECH02
                      Date: Tue, 18 Nov 2014 08:44:08 GMT
                      Content-Length: 0
                      [2014-11-18 08:44:09Z] Autodiscover response:
                      System.Net.WebException: The remote server returned an error: (401) Unauthorized.
                         at System.Net.HttpWebRequest.GetResponse()
                         at
                      Microsoft.Exchange.Management.SystemConfigurationTasks.ServiceValidatorBase.InternalInvoke()
                         at Microsoft.Exchange.Management.SystemConfigurationTasks.ServiceValidatorBase.Invoke()
MonitoringEventId   : 6001

RunspaceId          : cbaa3808-fb36-4066-af2d-f81d1a6ec4ae
Source              : HQ-SRV-EMB02.GOYS.ORG.BH
ServiceEndpoint     :
Scenario            : ExchangeWebServices
ScenarioDescription : Exchange Web Services
Result              : Skipped
Latency             : 0
Error               : Skipped testing Exchange Web Services because the Autodiscover step failed.
Verbose             :
MonitoringEventId   : 5002

RunspaceId          : cbaa3808-fb36-4066-af2d-f81d1a6ec4ae
Source              : HQ-SRV-EMB02.GOYS.ORG.BH
ServiceEndpoint     :
Scenario            : AvailabilityService
ScenarioDescription : Availability Service
Result              : Skipped
Latency             : 0
Error               : Skipped testing Availability Service because the Autodiscover step failed.
Verbose             :
MonitoringEventId   : 5003

RunspaceId          : cbaa3808-fb36-4066-af2d-f81d1a6ec4ae
Source              : HQ-SRV-EMB02.GOYS.ORG.BH
ServiceEndpoint     :
Scenario            : OfflineAddressBook
ScenarioDescription : Offline Address Book
Result              : Skipped
Latency             : 0
Error               : Skipped testing Offline Address Book because the Autodiscover step failed.
Verbose             :
MonitoringEventId   : 5004

VERBOSE: [08:44:09.428 GMT] Test-OutlookWebServices : Admin Audit Log: Entered Handler:OnComplete.
VERBOSE: [08:44:09.446 GMT] Test-OutlookWebServices : Ending processing Test-OutlookWebServices


Mashhour Faraj


Viewing all articles
Browse latest Browse all 3660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>