4 Replies Latest reply on Aug 2, 2020 10:28 AM by Tanaris

    powercli set hostname

    Tanaris Lurker

      i use this command to set hostname

      $esx = Get-VMHost

      $hostnamearray = $esx.name.split(",")

      $hostname = $hostnamearray[0]

      $n='LOCAL'+ $hostnamearray

      Get-VMHostNetwork -VMHost $esx | Set-VMHostNetwork -HostName $hostname

      1.PNG

      i get the hostname is:test192.168.50.180,i wan't set the hostname like test-50-180,help me please!