PowerCLI

PowerCLI: how to change DNS on ESXi hosts?

I had a situation to update the DNS servers on multiple esxi hosts. When you want to do bulk actions, PowerCLI is your friend! 1. Connect to the vCenter Server: Connect-VIServer VC_ADDRESS 2. Create a variable which includes the IP address of the DNS Server $dnsServers = '172.16.10.5' 3. Remove the old DNS …

Read More »