VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Custom TCP port on ESXI hosts

Hi Team,

I would like to automate custom tcp port creation on the ESXI hosts,using the Powercli option. In one host , by using below we can create the port


But I want to automate these task using powercli

  • Balaji Velaga
  • Aug 25 2021
  • Looking for Feedback
  • Attach files
  • Admin
    Kamen Nikolov commented
    30 Aug, 2021 11:53am

    Thanks. We'll have to check if there is an API to make these changes, but from what I'm seeing such an API may be missing, which will not allow the implementation of this feature in PowerCLI. One way to do what you need through PowerShell is described in this community post: https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-a-new-Firewall-Rule-in-each-ESX-hosts/td-p/2298275.

  • Balaji Velaga commented
    30 Aug, 2021 10:38am

    I updated the correct URL.

  • Admin
    Kamen Nikolov commented
    30 Aug, 2021 07:24am

    I think the KB is not the correct one. This one contains instructions on how to enable ESXi shell.