<?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 Re: How to store a value of output result in a variable? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-to-store-a-value-of-output-result-in-a-variable/m-p/437843#M6562</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/109930"&gt;@AllenChang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to add -HideTableHeaders into the command.&lt;/P&gt;&lt;P&gt;Per example:&lt;/P&gt;&lt;P&gt;$vol0size = Get-NcVol vol0 | Format-Table {$_.TotalSize/1GB} -HideTableHeaders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 06:20:17 GMT</pubDate>
    <dc:creator>hmoubara</dc:creator>
    <dc:date>2022-08-31T06:20:17Z</dc:date>
    <item>
      <title>How to store a value of output result in a variable?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-to-store-a-value-of-output-result-in-a-variable/m-p/437665#M6544</link>
      <description>&lt;P&gt;I&amp;nbsp; want to store a output result in a variable&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;I use the command&lt;/P&gt;&lt;P&gt;PS C:\Users\Administrator&amp;gt; &lt;FONT color="#0000FF"&gt;$vol0size = Get-NcVol vol0 | Format-Table {$_.TotalSize/1GB}&lt;/FONT&gt;&lt;BR /&gt;PS C:\Users\Administrator&amp;gt; &lt;FONT color="#0000FF"&gt;Write $vol0size&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;$_.TotalSize/1GB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;----------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;86.81876373291015625&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to store the result (&lt;FONT color="#FF0000"&gt;86.81876373291015625&lt;/FONT&gt;) in variable (for examble $vol0size)&lt;/P&gt;&lt;P&gt;but it always store all the result not only &lt;FONT color="#FF0000"&gt;86.81876373291015625&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#333333"&gt;How to make the result just only&lt;/FONT&gt; 86.81876373291015625 ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:57:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-to-store-a-value-of-output-result-in-a-variable/m-p/437665#M6544</guid>
      <dc:creator>AllenChang</dc:creator>
      <dc:date>2025-06-04T09:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a value of output result in a variable?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-to-store-a-value-of-output-result-in-a-variable/m-p/437843#M6562</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/109930"&gt;@AllenChang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to add -HideTableHeaders into the command.&lt;/P&gt;&lt;P&gt;Per example:&lt;/P&gt;&lt;P&gt;$vol0size = Get-NcVol vol0 | Format-Table {$_.TotalSize/1GB} -HideTableHeaders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 06:20:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-to-store-a-value-of-output-result-in-a-variable/m-p/437843#M6562</guid>
      <dc:creator>hmoubara</dc:creator>
      <dc:date>2022-08-31T06:20:17Z</dc:date>
    </item>
  </channel>
</rss>

