Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
drain-xaserver.ps1 gist 1
#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