Microsoft Virtualization Discussions

Case insensitive queries with PowerShell?

DrData
959 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
445 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