Hi LucD,
Thanks a lot for the reply. I have followed your suggestion on UseCulture and creating the CSV by notepad. But yet the issue hasn’t resolved. Please find the attached for the detailed error code.
Do I need to use $HC = Get-Credential to supply the root credentials for the host to access the extensiondata? Currently I am executing the script connecting to vCenter itself with the administrative account which has full access.
Or Can we have simple PowerCLI script for the below purpose ?
Requirement:
We have a list of ESXi 5.0 host names in CSV file. We have add 8- 10 VM PortGroup on all the hosts in the CSV file (VLAN ID which is already mention in my script) to the vSwitch 0. VM NIC would be vmnic0 & 1. At the port group level for all the 10 portgroup vmnic 0 has to be active & vmnic 1 has to be standby adaptor.
Regards
Suresh Dhanaraj