Timeout of Invoke-PolicyEvaluation

Jul 11, 2016 at 10:30 AM
Sometimes Invoke-PolicyEvaluation fails with a timeout on some servers. Is it possible to set the timeout to a bigger value?

Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server . ---> System.Data.SqlClient.SqlException: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=18583; handshake=14720