For the complete documentation index, see llms.txt. This page is also available as Markdown.

Test-PSUServerConnection

Checks whether a PowerShell Universal server connection is established.

SYNOPSIS

Checks whether a PowerShell Universal server connection is established.

SYNTAX

Test-PSUServerConnection [-Detailed] [<CommonParameters>]

DESCRIPTION

Reports whether Connect-PSUServer defaults are currently available. Use -Detailed to return connection metadata such as scope, computer name, and authentication type.

EXAMPLES

Example 1

PS C:\> Test-PSUServerConnection -Detailed

Returns detailed information about the current PowerShell Universal server connection state.

PARAMETERS

-Detailed

Returns detailed connection metadata instead of only $true or $false.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Boolean

UniversalAutomation.ServerConnectionInfo

NOTES

Last updated

Was this helpful?