<?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 HowTo test if Volume exists in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/HowTo-test-if-Volume-exists/m-p/12620#M647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to test if a volume exists. I use if (get-navol $volume). If the volume not exists I get an error message even if I use a variable ($volexist = get-navol $volume). How can I test the volume without getting an error message on the console? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:18:40 GMT</pubDate>
    <dc:creator>skellner</dc:creator>
    <dc:date>2025-06-05T06:18:40Z</dc:date>
    <item>
      <title>HowTo test if Volume exists</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/HowTo-test-if-Volume-exists/m-p/12620#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to test if a volume exists. I use if (get-navol $volume). If the volume not exists I get an error message even if I use a variable ($volexist = get-navol $volume). How can I test the volume without getting an error message on the console? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:18:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/HowTo-test-if-Volume-exists/m-p/12620#M647</guid>
      <dc:creator>skellner</dc:creator>
      <dc:date>2025-06-05T06:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo test if Volume exists</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/HowTo-test-if-Volume-exists/m-p/12623#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;PS C:\&amp;gt; &lt;SPAN style="color: #0000ff;"&gt;if ( (Get-NaVol noSuchVol -ErrorAction SilentlyContinue) -eq $null ) { Write-Host "No such volume" }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;No such volume&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:10:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/HowTo-test-if-Volume-exists/m-p/12623#M648</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-09-19T20:10:40Z</dc:date>
    </item>
  </channel>
</rss>

