Establishes an LDAP connection with a specified domain controllers and displays diagnostic information about the connection.
Test-SystoLockLdapConnection [-Authentication <AuthType>] [-GlobalCatalog] [-NextClosestSite] [-Rediscover]
[-Timeout <TimeSpan>] [-Udp] [<CommonParameters>]
Test-SystoLockLdapConnection [-Authentication <AuthType>] [-GlobalCatalog] [[-HostName] <String>] [-Timeout <TimeSpan>]
[-Udp] [<CommonParameters>]
The Test-SystoLockLdapConnection
cmdlet establishes an LDAP connection to specified domain controllers using parameters specified and displays diagnostic information about the established connection.
PS C:\> Test-SystoLockLdapConnection
Connects to a domain controller by default.
PS C:\> Test-SystoLockLdapConnection -Authentication Basic
Connects to a domain controller by default using basic authentication.
PS C:\> Test-SystoLockLdapConnection -GlobalCatalog -TimeOut 15
Attempts to connect to the default global catalog server with an allotted timeout of 15 seconds.
PS C:\> Test-SystoLockLdapConnection -HostName dc01.domain.com -Timeout 15
Attempts to connect to the host dc01.domain.com
with an allotted timeout of 15 seconds.
PS C:\> Test-SystoLockLdapConnection -Udp
Attempts to connect to the default domain controller using UPD instead of TCP protocol.
PS C:\> Test-SystoLockLdapConnection -NextClosestSite
Attempts to connect to a domain controller in the next closest site. This option usually used if current site has no domain controller.
PS C:\> Test-SystoLockLdapConnection -Rediscover
Forces a default domain controller to be re-discoverd before establishing a connection to it.
Specifies the authentication method to use. (default method is Negotiate).
Type: AuthType
Parameter Sets: (All)
Aliases:
Accepted values: Anonymous, Basic, Negotiate, Ntlm, Digest, Sicily, Dpa, Msn, External, Kerberos
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to find a default global catalog server which may differ from default domain controller and to establish connection on port 3268 instead of 389.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the the name of the domain controller to connect to. If omitted, the cmdlet will use the domain controller the system currently considers to be the default domain controller, e.g. domain controller it successfully connected recently.
Type: String
Parameter Sets: HostName
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the cmdlet should use global catalog server and port 3268. The global catalog server may differ from the domain controller by default.
Type: SwitchParameter
Parameter Sets: Rediscover
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Forces cached domain controller data to be ignored and perform a fresh domain controller discovery.
Type: SwitchParameter
Parameter Sets: Rediscover
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Represents a time interval maximally allotted for the operation. (default 10 seconds).
Type: TimeSpan
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Forces to use UDP protocol instead of TCP. This type of connection is also known as connection-less LDAP (CLDAP).
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Authentication method.
Host name.
Represent information about LDAP connection.
HostName: Active Directory controller name.
Latency: The amount of time the connection operation took.
Port: The TCP port number that was used to connect to the server.
SiteName: The Active Directory site name.
Authentication method can be usee for connection : Anonymous, Basic, Negotiate, Ntlm, Digest, SIcily, Dpa, Msn, External, Kerberos.