Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mtellin/7beb7c5a5943a65ade3fba9ced331215 to your computer and use it in GitHub Desktop.
Save mtellin/7beb7c5a5943a65ade3fba9ced331215 to your computer and use it in GitHub Desktop.
# --------------------------------------------------
#
# 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