Sync-vmware Issue with non-unique host names

Created by: mmahacek

We have some VMs that have an operating system hostname that is not unique, which was causing them to not be provisioned properly into Netbox. I made the following workaround to have all VMs named by their VM name and not the guest host name.

Line 192: Old: $Hostname = $Guest.Hostname.ToLower() New: $Hostname = $VM.Name.ToLower()