Created
April 10, 2017 15:38
-
-
Save mtellin/7beb7c5a5943a65ade3fba9ced331215 to your computer and use it in GitHub Desktop.
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
# -------------------------------------------------- | |
# | |
# Mike Tellinghuisen | |
# 2017-04-10 | |
# Loop through NSX non-Universal IP Sets and create | |
# Universal IP sets from them. Non-Universal IP sets | |
# are not removed during this script. | |
# | |
# -------------------------------------------------- | |
$local = Get-NsxIpSet -LocalOnly | |
Foreach ($i in $local) | |
{ | |
New-NsxIpSet -Name ($i.name + "-Universal") -IpAddresses $i.value -Universal | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment