I am working on some automation using powershell and the powershell toolkit. After creating a qtree and then its share, I am trying to set the 'ShareProperties' parameter, "browsable", which correlates to the checkbox in the UI for "allow client access to snapshot copies directory". It fails saying, "ShareProperties parameter specified, which is not supported for REST call".
I have tried it with Set-NcCifsShare and Add-NcCifsShare. I am running the powershell module for NetApp.ONTAP Version: 9.16.1.2501 in PowerShell 7.5.1.
An example of the script. If I take out the shareproperties piece, it works perfectly.
Set-NcCifsShare -Name $shareName -SymlinkProperties enable -AccessBasedEnumeration $true -ShareProperties "browsable" -VserverContext $storageVM
Is there any way to set that option via PowerShell?