Before running the script you’ll need the following:
- Install PowerCLI “Install-Module -Name VMware.PowerCLI -Scope CurrentUser”
- NSX Manager FQDNs and credentials
- NSX-T Overlay transport zone (the transport zone you will use to use to create the segments) you will need the ID for this
- The segments you want to add from TXT or CSV file (Download example from github link below)
Script file can be accessed here along with an example txt file:
PhilCDW/NSXTCreateSegments (github.com)
The Script will ask the following:
Input your NSX-T FQDN:
Credentials for NST-T
Input your Transport Zone ID:

Leave a Reply