GSAClientDiagnosticsToolkit.psd1
|
# # Module manifest for module 'GSAClientDiagnosticsToolkit' # # Generated by: Michael Morten Sonne # # Generated on: 11/16/2026 # @{ # Script module or binary module file associated with this manifest. RootModule = 'GSAClientDiagnosticsToolkit.psm1' # Version number of this module. ModuleVersion = '1.0.1' # Supported PSEditions CompatiblePSEditions = 'Desktop' # ID used to uniquely identify this module GUID = 'a3f7c2b1-4d89-4e6a-b012-5f8c9d3e7a21' # Author of this module Author = 'Michael Morten Sonne' # Company or vendor of this module CompanyName = 'blog.sonnes.cloud' # Copyright statement for this module Copyright = '(c) Michael Morten Sonne. All rights reserved.' # Description of the functionality provided by this module Description = 'Troubleshooting and diagnostics toolkit for the Microsoft Entra Global Secure Access (GSA) Windows client (Entra Internet Access, Entra Private Access, Microsoft 365 traffic). Checks client services, forwarding profile, DNS, TLS/mTLS connectivity, proxy, IPv6, Entra device/PRT status, authentication certificate, Intelligent Local Access and Private Access applications (via Microsoft Graph).' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '5.1' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module # RequiredModules = @() # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'GSAClientDiagnosticsToolkit.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # 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. FunctionsToExport = 'Invoke-GSAClientConnectivityCheck', 'Get-GSAEndpoints', 'Get-GSAAppProtectionExclusionServicePrincipals', 'Export-GSAEdgeAddresses', 'Test-GSAServiceStatus', 'Test-DeviceEntraStatus', 'Test-GSAPrimaryRefreshToken', 'Test-GSAForwardingProfileRegistry', 'Test-GSAForwardingProfileTimestamp', 'Test-GSASecureDnsStatus', 'Test-GSAIPv6Status', 'Test-GSASyntheticRoutes', 'Test-GSAHyperVExternalSwitch', 'Test-GSAPrivateDnsResolver', 'Test-GSAGroupPolicyNrptConflict', 'Test-GSAVpnSplitDnsInteroperability', 'Test-GSAEventLog', 'Test-InternetConnectivity', 'Test-DnsResolution', 'Test-GSATenantInternetDnsResolution', 'Test-TLSConnection', 'Test-mTLSConnectivity', 'Test-ProxyDetection', 'Test-EntraIDConnectivity', 'Test-EntraIDUserAuthentication', 'Test-GSADiagnosticUriConnectivity', 'Test-GSAPrivateAccessRule', 'Test-GSAPrivateAccessTunnel', 'Test-GSAForwardingProfileAssignment', 'Test-GSAClientProfileConnectivity', 'Test-GSAPrivateAccessApplicationSegment', 'Test-GSAPrivateAccessApplication', 'Test-GSAIntelligentLocalAccessConfiguration', 'Test-GSAHomeNetworkSupport', 'Test-GSAAuthCertificate', 'Test-GSAEdgeDiagnosticsStatus', 'Export-GSAAuthCertificate', 'Repair-GSAAuthCertificate' # Cmdlets 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 cmdlets to export. CmdletsToExport = @() # Variables to export from this module # VariablesToExport = @() # Aliases 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 aliases to export. AliasesToExport = @() # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'GSA','GlobalSecureAccess','Global-Secure-Access','MicrosoftEntra','Entra','EntraID','AzureAD','EntraInternetAccess','EntraPrivateAccess','PrivateAccess','InternetAccess','ZTNA','SSE','ZeroTrust','Troubleshooting','Diagnostics','Connectivity','HealthCheck','mTLS','DNS','Microsoft','Windows' # A URL to the license for this module. LicenseUri = 'https://github.com/michaelmsonne/GSAClientDiagnosticsToolkit/blob/main/LICENSE' # A URL to the main website for this project. ProjectUri = 'https://github.com/michaelmsonne/GSAClientDiagnosticsToolkit' # A URL to an icon representing this module. # IconUri = '' # ReleaseNotes of this module ReleaseNotes = '### Added - `Test-GSAHyperVExternalSwitch` - detects Hyper-V external virtual switches on the host, mirroring the GSA client''s built-in "No Hyper-V external virtual switch detected" Health check. Warns about this unsupported host configuration and recommends using an internal/private switch or installing the GSA client inside the VM(s) instead. Reports a warning without failing the check; skips as not applicable when Hyper-V is unavailable. Included in the full `Invoke-GSAClientConnectivityCheck` suite, with Pester tests covering detection, warning results, and unavailable Hyper-V. See [No Hyper-V external virtual switch detected](https://learn.microsoft.com/entra/global-secure-access/troubleshoot-global-secure-access-client-diagnostics-health-check#no-hyper-v-external-virtual-switch-detected). - `Test-GSAGroupPolicyNrptConflict` - detects the documented GSA known limitation where Group Policy-applied Name Resolution Policy Table (NRPT) rules at `HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\DnsPolicyConfig` (including a legacy empty rule list) override the GSA client''s local NRPT rules and break Private Access private DNS resolution. Supports an optional `-FindSourceGpo` switch that auto-detects the domain''s SYSVOL Policies path (asking for confirmation/override) and searches `registry.pol` files under it for `dnspolicyconfig` to help locate the source GPO. See [Known Limitations for Global Secure Access](https://learn.microsoft.com/en-us/entra/global-secure-access/reference-current-known-limitations?tabs=windows-client#name-resolution-policy-table-rules-in-group-policy-not-supported). **IMPORTANT**: Require line of sight to the Domain Controller! Warns also that SYSVOL matches are candidate source GPOs whose applicability must be verified before making changes, and that NRPT settings can also originate from Local Group Policy, which the SYSVOL search does not inspect. - `Test-GSAEdgeDiagnosticsStatus` - reads the GSA client''s own cached per-channel edge-diagnostics health result from `HKLM:\SOFTWARE\Microsoft\Global Secure Access Client\State\EdsResults` (discovered via Process Monitor analysis), a pipe-delimited string the client keeps continuously up to date from its internal `*.edgediagnostic.globalsecureaccess.microsoft.com` probes - the same checks the built-in Advanced Diagnostics tool and tray icon surface. Reports per-channel (Entra/M365/Private/Internet) health and flags a stale cached result via `-StaleAfterMinutes` (default 15). Included in the full `Invoke-GSAClientConnectivityCheck` suite. ### Changed - `Test-GSAAuthCertificate` now also cross-checks the installed certificate against the exact `CertCommonName` registry value (`HKLM:\SOFTWARE\Microsoft\Global Secure Access Client`, discovered via Process Monitor analysis to hold the Common Name the client expects) when present, flagging a mismatch as a stale/wrong certificate instead of only matching on the `gsa.client` subject suffix. - `Test-GSASecureDnsStatus` now also checks Mozilla Firefox''s `DNSOverHTTPS\Enabled` GPO registry value (`HKLM:\SOFTWARE\Policies\Mozilla\Firefox\DNSOverHTTPS`), in addition to the existing Edge/Chrome `DnsOverHttpsMode` checks, matching the three browsers documented in the client''s built-in Health check ([Secure DNS disabled in browsers](https://learn.microsoft.com/entra/global-secure-access/troubleshoot-global-secure-access-client-diagnostics-health-check#secure-dns-disabled-in-browsers-microsoft-edge-chrome-firefox)). ### Fixed - Default log file location failing with `UnauthorizedAccessException` when the module is imported from a non-writable current directory (e.g. `C:\Windows\system32` in a default PowerShell session). The default log path (module-level default and `Invoke-GSAClientConnectivityCheck -BasePath`) now defaults to `$env:TEMP` instead of the current working directory. - `Test-GSAPrivateDnsResolver` reporting a false failure for tenants that only use Enterprise Applications (per-app access) without Quick Access/Private DNS, since the GSA synthetic resolver (`6.6.255.254`) is only provisioned via a local NRPT rule - when Private DNS (a Quick Access feature) is enabled. The check now looks for that NRPT rule first and reports "not applicable" instead of an error when it''s absent. `Test-GSAPrivateDnsResolver` also now follows the same `-PassThru` convention as the other checks (nothing is returned by default; pass `-PassThru` for the `$true`/`$false` result), and logs matched/found NRPT rules and the DNS response details at `-LogLevel DEBUG`. (#1)' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module HelpInfoURI = 'https://github.com/michaelmsonne/GSAClientDiagnosticsToolkit/blob/main/README.md' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' } |