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?
NetApp.ONTAP Toolkit 9.10
PowerShell 7.2.5 and 5.1