Created
July 27, 2018 14:05
-
-
Save alainassaf/b8da43bb80ad6487801e38c3c47ac0d5 to your computer and use it in GitHub Desktop.
Switch to change to name
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
switch ($_) { | |
"192.168.50.1" {$xsn = "XenServerPool1"; break} | |
"192.168.50.2" {$xsn = "XenServerPool2"; break} | |
default {"UNKNOWN XENSERVER"; break} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment