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

Re: Index was outside the bounds of the array - Get-VirtualPortGroup

$
0
0

Then it looks as if your PowerShell engine, on the PC where you run the script, might be running out of resources.

 

Perhaps the $error variable contains some more info.

Or better yet, package this in a Try-Catch construct.

 

Get-Process-Id$PID
Try {
 
Get-VirtualPortGroup
}
Catch {
 
Get-Process-Id$PID
 
$_|Select*
 
$_.Exception.InnerException|Select*
}

 

Watch the PM (private memory) consumption that is returned by the Get-Process cmdlet.


Viewing all articles
Browse latest Browse all 189012

Trending Articles



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