Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

How to export network name into an excel cell ?

$
0
0

Hello,

I have the following code:

$array3 = Get-VM | Get-View | ForEach-Object { $_.Guest.Net } | select Network

but it breaks here:

$Sheet.Cells.Item($intRow,$intColumn) = $array3[$i]

Exception setting "Item": "Exception from HRESULT: 0x800A03EC"

At C:\scripts\VMware\HealthCheck_vCenter2_xls.ps1:498 char:19

+     $Sheet.Cells.Item <<<< ($intRow,$intColumn) = $array3[$i]

    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationException

    + FullyQualifiedErrorId : CatchFromBaseAdapterParameterizedPropertySetValueTI

 

Thanks for your help.


Viewing all articles
Browse latest Browse all 179681

Trending Articles



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