Pages: [1]
Print
Author Topic: set domain name of esx host  (Read 581 times)
esarakaitis
Administrator
Full Member
*****
Posts: 241


8223109 sack57@hotmail.com littleking57 rootinfortwayne
View Profile WWW Email
« on: January 13, 2009, 10:00:11 AM »

Code:
$esx = Get-VMHost "vmhost"] | Get-View
$ns = Get-View -Id $esx.configManager.networkSystem
$dns = $ns.networkConfig.dnsConfig
$dns.domainname = "domain.com"
$ns.UpdateDnsConfig($dns)
Logged
Pages: [1]
Print
Jump to: