< Back
Test-CSConnection
Post
NAME Test-CSConnection
SYNOPSIS
Returns the connection state of a given type to the remote host.
SYNTAX
Test-CSConnection [-RemoteHost] <String> [-Type] <String> [<CommonParameters>]
DESCRIPTION
Use this script to check a connection which was established with the `Connect-To` cmdlet.
PARAMETERS
-RemoteHost <String>
Define the remote host you would like to check.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
Define the connection type you would like to check. See the `Connect-To` documentation
for valid type values.
Required? true
Position? 2
Default value
Accept pipeline input? false
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
[None]
OUTPUTS
[bool]
NOTES
- File Name : Test-CSConnection.ps1
- Author : Marco Blessing - marco.blessing@googlemail.com
- Requires :
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-CMConnection -RemoteHost "vcr01.internal.net" -Type VMware
RELATED LINKS
https://github.com/OCram85/PSCredentialStore
SYNOPSIS
Returns the connection state of a given type to the remote host.
SYNTAX
Test-CSConnection [-RemoteHost] <String> [-Type] <String> [<CommonParameters>]
DESCRIPTION
Use this script to check a connection which was established with the `Connect-To` cmdlet.
PARAMETERS
-RemoteHost <String>
Define the remote host you would like to check.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
Define the connection type you would like to check. See the `Connect-To` documentation
for valid type values.
Required? true
Position? 2
Default value
Accept pipeline input? false
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
[None]
OUTPUTS
[bool]
NOTES
- File Name : Test-CSConnection.ps1
- Author : Marco Blessing - marco.blessing@googlemail.com
- Requires :
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-CMConnection -RemoteHost "vcr01.internal.net" -Type VMware
RELATED LINKS
https://github.com/OCram85/PSCredentialStore