Skip to content

Instantly share code, notes, and snippets.

@alainassaf
Created March 6, 2017 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alainassaf/74f48dc5142aec78300decf723d66fab to your computer and use it in GitHub Desktop.
Save alainassaf/74f48dc5142aec78300decf723d66fab to your computer and use it in GitHub Desktop.
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