Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Rename VM via PowerCLI

$
0
0

hi all,

I tryed to rename a VM (the host name of the VM) via PowerCLI with this code:

New-VM -Name $name -Template $template -VMHost $vmhost

 

 

Set-VM -VM $name  -OSCustomizationSpec &Spec1 -Confirm:$false

When Spec1 let the NetBIOS Name be the virtual machine name (=$name)

But, it still get the name of the template machine name (=$template),


thank's


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>