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

Re: I Need help, How to configure IP addresses of VMs with PowerCLI

$
0
0

When do i start my machine, tools is activated.

When I revival my script, I got another error message :

 

Get-VMGuestNetworkInterface : 28/02/2013 15:36:14    Get-VMGuestNetworkInterfa
e        Failed to authenticate with the operating system cli
nt with the supplied credentials.

At C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scripts\1.ps1:1 cha
:99
+ Get-VMHost server.Paris.free.fr | get-vm Machinedetest1 | Get-V
GuestNetworkInterface <<<<  | ? {$_.name -eq "Local Area Connection"} | Set-VM
uestNetworkInterface -IPPolicy static -Gateway 192.168.1.1 -Netmask 255.255.25
.0 -Ip 192.168.1.5 -Verbose
    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface],
    ViError
    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_GetGuestAuthenticati
   on_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVmGuestNetworkI
  nterface

 

Error syntax ?

 

My script :

Get-VMHost server.Paris.free.fr | get-vm Machinedetest1 | Get-VMGuestNetworkInterface | ? {$_.name -eq "Local Area Connection"} | Set-VMGuestNetworkInterface -IPPolicy static -Gateway 192.168.1.1 -Netmask 255.255.255.0 -Ip 192.168.1.5 -Verbose

 

The Os of my machine is Windows Xp, its a problem ?


Viewing all articles
Browse latest Browse all 251579

Trending Articles



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