Ok got rid of the network error afterupdating the script:
$myCluster = Get-Cluster -Name "Production Cluster 2"
$vmHost = Get-VMHost -Name "vmbmdbj030148.corp.contoso.com"
$myDatastore = "nabmdsd02_vmcluster02_lun20_vmds02_t1_dr0"
Import-vApp -Source "e:\files\VMware vCenter Operations Manager\VMware vCenter Operations Manager.ovf" -VMHost $vmHost -Location $myCluster -Name "MyWebServerProduction1" -Datastore $myDatastore
But now I recievie this error:
Import-VApp : 2/22/2013 8:28:16 AM Import-VApp File ds:///vmfs/volume
s/4f7a062a-214b3fe6-1ba8-1cc1de1dcc7c/_deviceImage-0.iso was not found
At E:\Import_vapp.ps1:4 char:12
+ Import-vApp <<<< -Source "e:\files\VMware vCenter Operations Manager\VMware
vCenter Operations Manager.ovf" -VMHost $vmHost -Location $myCluster -Name "MyW
ebServerProduction1" -Datastore $myDatastore
+ CategoryInfo : NotSpecified: (:) [Import-VApp], FileNotFound
+ FullyQualifiedErrorId : Client20_NfcLease_WaitForNfcLeaseToInitialize_Er
ror,VMware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp
Thanks
Andy