TestimoX

API Reference

Command

Test-ADXAdfs

Namespace ADPlayground.PowerShell
Inputs
System.String[]
Outputs
ADPlayground.Monitoring.Probes.ProbeResult

Tests AD FS service, federation metadata, TLS certificate, and event telemetry.

Examples

Authored help example

Example 1: Check two AD FS servers without starting the monitoring service


Test-ADXAdfs -ComputerName 'adfs01.contoso.com','adfs02.contoso.com' -IncludeChildResults
        

Example 2: Check Web Application Proxy servers


Test-ADXAdfs -ComputerName 'wap01.contoso.com','wap02.contoso.com' -IncludeWebApplicationProxy -SkipFederationService
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Test-ADXAdfs -ComputerName <string[]> [-AllowedRecentErrorEvents <int>] [-AllowedRecentWarningEvents <int>] [-CertificateCriticalDays <int>] [-CertificateDegradedDays <int>] [-EventLogChannel <string[]>] [-EventLookbackHours <int>] [-EventProviderName <string[]>] [-FailureEventId <int[]>] [-FailureLookbackHours <int>] [-FederationMetadataPath <string>] [-FederationServiceHost <string>] [-HttpsPort <int>] [-IgnoreWarnings] [-IncludeChildResults] [-IncludeWebApplicationProxy] [-MaxConcurrency <int>] [-Name <string>] [-QueryTimeoutSeconds <int>] [-SkipCertificate] [-SkipFederationMetadata] [-SkipFederationService] [-TimeoutSeconds <int>] [<CommonParameters>]
#

Parameters

ComputerName string[] requiredposition: 0pipeline: true (ByValue, ByPropertyName)
AD FS or Web Application Proxy server names to test.
AllowedRecentErrorEvents int optionalposition: namedpipeline: false
Recent AD FS error events tolerated before the result changes state.
AllowedRecentWarningEvents int optionalposition: namedpipeline: false
Recent AD FS warning events tolerated before the result changes state.
CertificateCriticalDays int optionalposition: namedpipeline: false
Certificate remaining-days threshold that marks the result down.
CertificateDegradedDays int optionalposition: namedpipeline: false
Certificate remaining-days threshold that marks the result degraded.
EventLogChannel string[] optionalposition: namedpipeline: false
Event log channels to query for AD FS telemetry.
EventLookbackHours int optionalposition: namedpipeline: false
Event lookback window in hours.
EventProviderName string[] optionalposition: namedpipeline: false
Optional event provider names. Empty means all providers in the channel.
FailureEventId int[] optionalposition: namedpipeline: false
Specific event IDs treated as failures. Empty means warning/error levels are used.
FailureLookbackHours int optionalposition: namedpipeline: false
Failure lookback window in hours.
FederationMetadataPath string optionalposition: namedpipeline: false
Relative AD FS federation metadata path.
FederationServiceHost string optionalposition: namedpipeline: false
Optional federation service host used for metadata and TLS certificate checks.
HttpsPort int optionalposition: namedpipeline: false
HTTPS port for federation metadata checks.
IgnoreWarnings SwitchParameter optionalposition: namedpipeline: false
Does not degrade the result for warning-level AD FS events.
IncludeChildResults SwitchParameter optionalposition: namedpipeline: false
Writes child per-server results when a multi-target aggregate is returned.
IncludeWebApplicationProxy SwitchParameter optionalposition: namedpipeline: false
Checks the Web Application Proxy service (appproxysvc).
MaxConcurrency int optionalposition: namedpipeline: false
Maximum concurrent server checks.
Name string optionalposition: namedpipeline: false
Probe name written to the result object.
QueryTimeoutSeconds int optionalposition: namedpipeline: false
Timeout in seconds for each WMI, event-log, and HTTPS metadata query.
SkipCertificate SwitchParameter optionalposition: namedpipeline: false
Skips TLS certificate policy and expiration evaluation.
SkipFederationMetadata SwitchParameter optionalposition: namedpipeline: false
Skips the federation metadata HTTPS endpoint check.
SkipFederationService SwitchParameter optionalposition: namedpipeline: false
Skips the AD FS federation service check (adfssrv).
TimeoutSeconds int optionalposition: namedpipeline: false
Overall per-target timeout in seconds.

Outputs

ADPlayground.Monitoring.Probes.ProbeResult