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

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

$
0
0

LucD, thank you for this.  This was the command that I was playing with trying to get to work. Here is the error that I get when executed this on one VM as a test.

 

Get-vm -Name rickpo-test | Get-VMGuestNetworkInterface | Set-VMGuestNetworkInterface -IPPolicy Static 10.10.10.10 -Netmask 255.255.255.0 -Gateway 10.10.10.1

Get-VMGuestNetworkInterface : 8/6/2013 12:08:50 PM    Get-VMGuestNetworkInterface        Failed to authenticate with the guest operating system using the supplied c

redentials.   

At line:1 char:55

+ Get-vm -Name rickpo-test | Get-VMGuestNetworkInterface <<<<  | Set-VMGuestNetworkInterface -IPPolicy Static 10.10.10.10 -Netmask 255.255.255.0 -Gateway 10.10.10.1

    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface], InvalidGuestLogin

    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_GetGuestAuthentication_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVmGuestNetworkInterface


Viewing all articles
Browse latest Browse all 192300

Trending Articles



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