<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Powershell Question in General Discussion</title>
    <link>https://community.netapp.com/t5/General-Discussion/Powershell-Question/m-p/153229#M690</link>
    <description>&lt;P&gt;I need to find the space used by only a select group of volumes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\WINDOWS\system32&amp;gt; Get-NcVol | Where-Object { $_.State -eq 'offline'} |&amp;nbsp; ( ????)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What command can I use to get the total space used by only the offine volumes?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 12:05:57 GMT</pubDate>
    <dc:creator>Terrydari123</dc:creator>
    <dc:date>2025-06-04T12:05:57Z</dc:date>
    <item>
      <title>Powershell Question</title>
      <link>https://community.netapp.com/t5/General-Discussion/Powershell-Question/m-p/153229#M690</link>
      <description>&lt;P&gt;I need to find the space used by only a select group of volumes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\WINDOWS\system32&amp;gt; Get-NcVol | Where-Object { $_.State -eq 'offline'} |&amp;nbsp; ( ????)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What command can I use to get the total space used by only the offine volumes?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:05:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Powershell-Question/m-p/153229#M690</guid>
      <dc:creator>Terrydari123</dc:creator>
      <dc:date>2025-06-04T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Question</title>
      <link>https://community.netapp.com/t5/General-Discussion/Powershell-Question/m-p/153231#M691</link>
      <description>&lt;P&gt;You got it about 95% of the way there. I would do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;Get-NcVol | Where-Object {$_.State -eq "offline"} | select Name, @{l = "TotalSizeGB"; e = {$([Math]::Round($_.TotalSize / 1GB, 2))}}&lt;/PRE&gt;
&lt;P&gt;It'll return something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Name         TotalSizeGB
----         -----------
testvol         250&lt;/PRE&gt;
&lt;P&gt;The TotalSize is reported in bytes, so I'm just using a calculated property to convert it back to GB for readability's sake.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 17:17:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Powershell-Question/m-p/153231#M691</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2019-12-23T17:17:34Z</dc:date>
    </item>
  </channel>
</rss>

