NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Case insensitive queries with PowerShell?

DrData
2,735 Views

Greetings,

 

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:

$Svm = "mysvm"
$Path = "NetApp\Documentation"
$FileQuery = Get-NcCifsSessionFile -Template
$FileQuery.Vserver = $Svm
$FileQuery.Path = "*" + $Path + "*"
Get-NcCifsSessionFile -Query $FileQuery

This search works perfectly fine. However, if the upper case letter “D” is accidentally replaced with a lower case “d”, no files are found:
$Path = "NetApp\documentation"

 

Question: is there ANY way to make this query case insensitive? If not, are there any plans to implement this in a foreseeable future?


Versions:
NetApp.ONTAP Toolkit 9.10
PowerShell 7.2.5 and 5.1
ONTAP 9.10.1P9

 

1 REPLY 1

AmmarMhowwala
2,217 Views

I would suggest you please post this suggestion on form under the Help/Queries tab on the devnet portal to submit a request.

Public