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

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

$
0
0

Sorry for not getting this, but I have attempted to use those options like the following:

 

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

 

and received the following error.

 

Get-VMGuestNetworkInterface : 8/6/2013 1:03:52 PM    Get-VMGuestNetworkInterface        Failed to authenticate with the guest operating system using the supplied cr

edentials.   

At line:1 char:55

+ Get-vm -Name rickpo-test | Get-VMGuestNetworkInterface <<<<  | Set-VMGuestNetworkInterface -GuestUser Administrator -GuestPassword Passw0rd -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

 

If I connect to this VM via console, I can login and receive my desktop using this credentials.  What am I missing?

 

Does it matter that I am doing this in Window PowerShell ISE?

 

let me know.  I am almost there.

 

Thank you

 

Rick


Viewing all articles
Browse latest Browse all 214415

Trending Articles



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