< Back

Test-ServerConnection

Tue Jan 14, 2020 3:19 am

NAME Test-ServerConnection



SYNOPSIS

Test connection to servers





SYNTAX

Test-ServerConnection [-Hostname] <PSObject[]> [<CommonParameters>]





DESCRIPTION

Allows you to do a Test-Connection to all servers. If the hostname fails, it will ask you to test by IP to confirm

no DNS issues.





PARAMETERS

-Hostname <PSObject[]>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

You can pipe hostnames in by value or by property name





OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



C:\\PS>Test-ServerConnection -Hostname 'HYPERV01','HYPERV02'













-------------------------- EXAMPLE 2 --------------------------



C:\\PS>'HYPERV01 | Test-ServerConnection















RELATED LINKS