PowerCLI: Exception of type 'System.OutOfMemoryException' was thrown
When working with PowerCLI in a large environment and retrieving large amounts of data, particularly when using the Get-View cmdlet, you may receive the following error: Get-View Exception of type ‘System.OutOfMemoryException’ was thrown
Looking at the available memory on your system may cause you to wonder why you receive this error message. It may occur because you are running the 32-bit version of PowerCLI where the size of the heap is limited to 1.5 GB. Try running the same command or script on a 64-bit system, which should resolve the issue.