Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 201745

Re: How to script changing IP and hostname on 600 Windows 2008 R2 (64bit) VM's

$
0
0

No problem, then we have to fall back on the WMI method.

With Invoke-VMScript execute the following in the guest OS.

$newName = "NewName"

$compSys = Get-WmiObject -Class Win32_Computersystem

$compSys.Rename($newName)

Followed by a reboot of the guest OS


Viewing all articles
Browse latest Browse all 201745

Trending Articles