Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created February 23, 2021 19:02
Show Gist options
  • Save JohnL4/acbdacb0496bb8244c5e10112051b309 to your computer and use it in GitHub Desktop.
Save JohnL4/acbdacb0496bb8244c5e10112051b309 to your computer and use it in GitHub Desktop.
Change idle timeout for remote PowerShell sessions
# Six hours.
$PSSessionOption.IdleTimeout = New-Object TimeSpan 6,0,0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment