Hi Krishna,
I suspect you might be using an older version of the PowerShell Toolkit? Use the following CmdLet to identify which version you have:
PS C:\> Get-NaToolkitVersion
Major Minor Build Revision
----- ----- ----- --------
3 0 0 90
I've come accross this memory error issue before and found that newer versions of the toolkit have a "-Terse" paramater associated with the "Get-NaVol" CmdLet which prevents the CmdLet querying each volume object for all of it's properties (which tends to result in a out-of-memory error on systems with a large number of volumes). See:
PS C:\> Get-help Get-NaVol -full
NAME
Get-NaVol
SYNOPSIS
Get volume status.
SYNTAX
Get-NaVol [[-Name] <String[]>] [-Aggregate <String>] [-Terse] [-Controller <NaController>] [<CommonParameters>]
-Terse
If specified, omit retrieving some volume attributes, including "RaidGroups" in the "Plexes" array, "SnapAutoDelete", and "AutoSize". Use wh
en retrieving a large number of volumes and these attributes are not necessary.
Hope that helps
/matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.