Retrieving Information About the Network Configuration

You can retrieve information about the network configuration as follows:

  • The properties of the HostNetworkConfig object, which you access through HostNetworkSystem.networkConfig, allow you to retrieve configuration information. This information is comprehensive and includes the physical adapters, virtual switches, virtual network interfaces, and so on.

    You can also use HostNetworkConfig to make changes to the configuration.

  • The properties of the HostNetworkInfo object, which you access through HostNetworkSystem.networkInfo, allow you to retrieve runtime information.