-
-
Save alainassaf/74f48dc5142aec78300decf723d66fab to your computer and use it in GitHub Desktop.
drain-xaserver.ps1 gist 1
This file contains 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
#Set Aggression level | |
if ($aggression -eq "Red") { | |
$timeOut = 15 | |
write-verbose "Agression level is Red. Idle session timeout set to 15 minutes" | |
} elseif ($aggression -eq "Yellow") { | |
$timeOut = 30 | |
write-verbose "Agression level is Yellow. Idle session timeout set to 30 minutes" | |
} else { | |
$timeOut = 0 | |
write-verbose "Agression level is Green. Idle session timeout is default" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment