Skip to main content

Test-NetworkConnection

SYNOPSISโ€‹

Tests for an active local network connection, excluding wireless and virtual network adapters.

SYNTAXโ€‹

Test-NetworkConnection [<CommonParameters>]

DESCRIPTIONโ€‹

Tests for an active local network connection, excluding wireless and virtual network adapters, by querying the Win32_NetworkAdapter WMI class.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Test-NetworkConnection

PARAMETERSโ€‹

CommonParametersโ€‹

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

INPUTSโ€‹

Noneโ€‹

You cannot pipe objects to this function.โ€‹

OUTPUTSโ€‹

System.Booleanโ€‹

Returns $true if a wired network connection is detected, otherwise returns $false.โ€‹

NOTESโ€‹

https://psappdeploytoolkit.com