< Back

Set-MaxConnectionIdleTime

Fri Jan 10, 2020 6:57 pm

NAME Set-MaxConnectionIdleTime



SYNOPSIS

The directory service must be configured to terminate LDAP-based network connections to the directory server after

five (5) minutes of inactivity.





SYNTAX

Set-MaxConnectionIdleTime [[-MaxConnIdleTime] <Int32>] [[-Credential] <PSCredential>] [<CommonParameters>]





DESCRIPTION

The Set-MaxConnectionIdleTime cmdlet sets the timeout for inactive connections. The command must be run with

Enterprise Admin credentials.





PARAMETERS

-MaxConnIdleTime <Int32>

The timeout for inactive network connections. Defaults to 5 minutes.



Required? false

Position? 1

Default value 300

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Credential <PSCredential>

The credentials to use to make the change. The command must be run with Enterprise Admin credentials.



Required? false

Position? 2

Default value [System.Management.Automation.PSCredential]::Empty

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

System.Int32





OUTPUTS

System.String





NOTES





AUTHOR: Michael Haken

LAST UPDATE: 2/27/2016



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



PS C:\\>Set-MaxConnectionIdleTime



Sets the connection idle time setting to 5 minutes (default).









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



PS C:\\>Set-MaxConnectionIdleTime -MaxConnIdleTime 180



Sets the connection idle time setting to 3 minutes











RELATED LINKS