<?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 Case insensitive queries with PowerShell? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Case-insensitive-queries-with-PowerShell/m-p/442537#M6685</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to search for open files using the PowerShell but it seems like these queries are case sensitive. This will probably be a show-stopper as we have billions of files, with folder and file names far more complex than this example:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$Svm = "mysvm"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$Path = "NetApp\Documentation"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$FileQuery = Get-NcCifsSessionFile -Template&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$FileQuery.Vserver = $Svm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$FileQuery.Path = "*" + $Path + "*"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Get-NcCifsSessionFile -Query $FileQuery&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This search works perfectly fine. However, if the upper case letter “D” is accidentally replaced with a lower case “d”, no files are found:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$Path = "NetApp\documentation"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: is there ANY way to make this query case insensitive? If not, are there any plans to implement this in a foreseeable future?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Versions:&lt;BR /&gt;NetApp.ONTAP Toolkit 9.10&lt;BR /&gt;PowerShell 7.2.5 and 5.1&lt;BR /&gt;ONTAP 9.10.1P9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:51:52 GMT</pubDate>
    <dc:creator>DrData</dc:creator>
    <dc:date>2025-06-04T09:51:52Z</dc:date>
    <item>
      <title>Case insensitive queries with PowerShell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Case-insensitive-queries-with-PowerShell/m-p/442537#M6685</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to search for open files using the PowerShell but it seems like these queries are case sensitive. This will probably be a show-stopper as we have billions of files, with folder and file names far more complex than this example:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$Svm = "mysvm"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$Path = "NetApp\Documentation"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$FileQuery = Get-NcCifsSessionFile -Template&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$FileQuery.Vserver = $Svm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$FileQuery.Path = "*" + $Path + "*"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Get-NcCifsSessionFile -Query $FileQuery&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This search works perfectly fine. However, if the upper case letter “D” is accidentally replaced with a lower case “d”, no files are found:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$Path = "NetApp\documentation"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: is there ANY way to make this query case insensitive? If not, are there any plans to implement this in a foreseeable future?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Versions:&lt;BR /&gt;NetApp.ONTAP Toolkit 9.10&lt;BR /&gt;PowerShell 7.2.5 and 5.1&lt;BR /&gt;ONTAP 9.10.1P9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:51:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Case-insensitive-queries-with-PowerShell/m-p/442537#M6685</guid>
      <dc:creator>DrData</dc:creator>
      <dc:date>2025-06-04T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive queries with PowerShell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Case-insensitive-queries-with-PowerShell/m-p/446603#M6783</link>
      <description>&lt;P&gt;I would suggest you please post this suggestion on&amp;nbsp;form under the Help/Queries tab on the &lt;A href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevnet.netapp.com%2Frestapi.php&amp;amp;data=05%7C01%7CAmmar.Mhowwala%40netapp.com%7C1c908b8a4534409dbed608db8c44130c%7C4b0911a0929b4715944bc03745165b3a%7C0%7C0%7C638257996224742829%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=YKOxP13qgzroYEXsuyIBcLuBjV5tQqLY63rYo%2BcxHT0%3D&amp;amp;reserved=0" target="_blank"&gt;devnet&lt;/A&gt; portal to submit a request.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 06:17:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Case-insensitive-queries-with-PowerShell/m-p/446603#M6783</guid>
      <dc:creator>AmmarMhowwala</dc:creator>
      <dc:date>2023-08-03T06:17:02Z</dc:date>
    </item>
  </channel>
</rss>

