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 ?