Created
February 23, 2021 19:02
-
-
Save JohnL4/acbdacb0496bb8244c5e10112051b309 to your computer and use it in GitHub Desktop.
Change idle timeout for remote PowerShell sessions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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