Hello,
I have 2 points:
1/ When I have written vmk name variable because I'm not sure that is the same VMK number device for each esx but sure of the PortgroupName:
$vmkName = Get-VMHostNetworkAdapter -vmkernel | ?{$_.PortgroupName -eq "test_provisioning"} | select Name (or I try with DeviceName)
But when I launch the script to activate the provisioning, I have an error: "A specified parameter was not correct:" without more explanation on vSphere console. It seems not catch the vmk number device with my variable $vmkName.
2/ with this: foreach ($esx in (Get-VMHost -Name $hostname.Name)) {
Log -Message "Activate Provisioning for $($hostname.Name)"
$hostname.Name give all the entire list of esxi hostname of the csv file display on screen and in the log for each activation provisioning service. But I don't know which hostname is concern by provisioning activation. I would like only a hostname concern for each action of provisioning activation.
regards,
David