You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Verbose"Found $($EndpointsObjs.length) endpoints to check"
41
+
$j=0
42
+
foreach($EndpointsObjin$EndpointsObjs){
43
+
Write-Progress-Activity "Connectivity Tests"-status "Building urls for $($EndpointsObj.serviceArea) with id $($EndpointsObj.id)"-percentComplete ($j/$EndpointsObjs.length*100)
$possibleErrors+=New-AnalyzeResult-TestName "Connectivity"-Type "Warning"-Issue "Could not check connectivity to $url and Port $Port because no static url for this wildcard url was found."-PossibleCause $Cause
if ($connectivity.Blocked-eq$true-and$dataObj.Blocked-eq$false) {
99
+
$possibleErrors+=New-AnalyzeResult-TestName "Connectivity"-Type "Error"-Issue "Connection blocked `n$($connectivity)"-PossibleCause "Firewall is blocking connection to '$($connectivity.UnblockUrl)'."
100
+
}
101
+
if ($connectivity.Resolved-eq$false) {
102
+
$possibleErrors+=New-AnalyzeResult-TestName "Connectivity"-Type "Error"-Issue "DNS name not resolved `n$($connectivity)"-PossibleCause "DNS server not correctly configured."
103
+
}
104
+
if ($connectivity.ActualStatusCode-ne$connectivity.ExpectedStatusCode) {
105
+
if($connectivity.ActualStatusCode-eq407){
106
+
$Cause="Keep in mind that the proxy has to be set in WinHTTP.`nWindows 1709 and newer: Set the proxy by using netsh or WPAD. --> https://docs.microsoft.com/en-us/windows/desktop/WinHttp/winhttp-autoproxy-support `nWindows 1709 and older: Set the proxy by using 'netsh winhttp set proxy ?' --> https://blogs.technet.microsoft.com/netgeeks/2018/06/19/winhttp-proxy-settings-deployed-by-gpo/ "
107
+
} else {
108
+
$Cause="Interfering Proxy server can change HTTP status codes."
109
+
}
110
+
$possibleErrors+=New-AnalyzeResult-TestName "Connectivity"-Type "Error"-Issue "Returned Status code '$($connectivity.ActualStatusCode)' is not expected '$($connectivity.ExpectedStatusCode)'`n$($connectivity)"-PossibleCause $Cause
111
+
}
112
+
if ($null-ne$connectivity.ServerCertificate-and$connectivity.ServerCertificate.HasError-and-not$dataObj.IgnoreCertificateValidationErrors) {
113
+
$possibleErrors+=New-AnalyzeResult-TestName "Connectivity"-Type "Error"-Issue "Certificate Error when connecting to $($connectivity.TestUrl)`n$(($connectivity.ServerCertificate))"-PossibleCause "Interfering Proxy server can change Certificate or not the Root Certificate is not trusted."
Returns list of Azure/O365 endpoints from the official Microsoft webservice.
5
+
6
+
.Description
7
+
Try loading the actual list of Azure/O365 endpoints from the official Microsoft webservice. If not possible it will used a cached version. If an online version can be retriefed and the script is executed with administrative permission it also updates the local cache.
Write-Error"Error downloading the actual endpoint list ($($Endpoints.StatusDescription) - $($Endpoints.StatusCode)) `n https://endpoints.office.com"-ErrorAction Continue
Copy file name to clipboardExpand all lines: PSModule/ModernWorkplaceClientCenter/ModernWorkplaceClientCenter.psd1
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
#
4
4
# Generated by: Thomas Kurth
5
5
#
6
-
# Generated on: 02.12.2018
6
+
# Generated on: 09.01.2019
7
7
#
8
8
9
9
@{
@@ -12,7 +12,7 @@
12
12
RootModule='ModernWorkplaceClientCenter.psm1'
13
13
14
14
# Version number of this module.
15
-
ModuleVersion='0.1.9'
15
+
ModuleVersion='0.1.10'
16
16
17
17
# Supported PSEditions
18
18
# CompatiblePSEditions = @()
@@ -27,7 +27,7 @@ Author = 'Thomas Kurth'
27
27
CompanyName='Thomas Kurth'
28
28
29
29
# Copyright statement for this module
30
-
Copyright='(c) 2018 Thomas Kurth. All rights reserved.'
30
+
Copyright='(c) 2019 Thomas Kurth. All rights reserved.'
31
31
32
32
# Description of the functionality provided by this module
33
33
Description='The Modern Workplace Client Center Module provides functions to troubleshoot Microsoft Intune on a Windows 10 client in a modern managed environment. Th initial version mainly allows troubleshooting Azure AD Hybrid Join.'
@@ -66,12 +66,14 @@ PowerShellVersion = '5.0'
66
66
# FormatsToProcess = @()
67
67
68
68
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
Copy file name to clipboardExpand all lines: PSModule/ModernWorkplaceClientCenter/NestedModules/HttpConnectivityTester/HttpConnectivityTester.psm1
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -388,7 +388,6 @@ Function Get-HttpConnectivity() {
388
388
389
389
[Parameter(Mandatory=$false,HelpMessage="Whether to ignore certificate validation errors so they don't affect the connectivity test. Some HTTPS endpoints are not meant to be accessed by a browser so the endpoint will not validate against browser security requirements.")]
390
390
[switch]$IgnoreCertificateValidationErrors,
391
-
392
391
[Parameter(Mandatory=$false,HelpMessage='Whether to perform a Symantec BlueCoat Site Review lookup on the URL. Warning: The BlueCoat Site Review REST API is rate limited. Automatic throttling is performed when this parameter is used.')]
0 commit comments