Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

Get-VMGuestNetworkInterface Could not find file

$
0
0

Anyone know the fix on this error message? Is there really a GetVmGuestNetworkInterface_.bat? I only have _WindowsGuest.bat, _windows7Server64Guest.bat, _windows764Guest.bat and LinuxGuest.

 

Get-VMGuestNetworkInterface : 1/15/2013 2:58:43 PM    Get-VMGuestNetworkInterfa
ce        Could not find file 'C:\Program Files (x86)\VMware\Infrastructure\vSp
here PowerCLI\Scripts\GetVmGuestNetworkInterface_.bat'.
At C:\data\techops\ProductOperations\Scripts\MigrateTo-vCloud.ps1:451 char:61
+                         $guestnetintf = $newvcvm | Get-VMGuestNetworkInterfac
e <<<<  -HostUser $esxserver.Username -HostPassword $esxserver.Password -GuestU
ser $vm.GuestID -GuestPassword $vm.GuestPwd | Select -First 1 | %{$_.Name}
    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface],
    ViError
    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_UploadFileToGuest_Vi
   Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVmGuestNetworkInterf
  ace

 

I only encountered this error when i run my script but not when i do it manually.

 

Originally i created the script on 5.0 and i only encountered this error now after upgrading to 5.1

 

Not sure if it matters but i am switching to STA mode in the script.

 

The Guest OS of the VM i am running against is Windows 2008 R2 64bit.

 

I have the following PowerCLI version

PowerCLI Version
----------------
   VMware vSphere PowerCLI 5.1 Release 1 build 793510
---------------
Snapin Versions
---------------
   VMWare AutoDeploy PowerCLI Component 5.1 build 768137
   VMWare ImageBuilder PowerCLI Component 5.1 build 768137
   VMware vCloud Director PowerCLI Component 1.5 build 793505
   VMware License PowerCLI Component 5.1 build 669840
   VMware vSphere PowerCLI Component 5.1 build 793489

 

and Running against vCenter Server, 5.1.0, 880146

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 193198

Trending Articles



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