I created a test share using the powershell module NetApp.ONTAP 9.12.1.2302 against a NetApp running NetApp Release 9.11.1P7.
Connect-NcController <NetApp ClusterName>
$global:CurrentNcController.Vserver = <VServerName>
Add-NcCifsShare -name Test1 -Oplocks $true -AccessBasedEnumeration $true -ChangeNotify $true -Path /<flexGroupName>
The share is successfully created, but does not have the three settings set, so I tried to modify them:
Set-NcCifsShare -Name Test1 -Oplocks $true
When I do that, it does not give me feedback that something went wrong, but it also does not set the OpLocks to be true. Also, if I have manually turned on one of the three mentioned settings, it turns all three off! I tried it by creating the share with Add-NcCifsShare and using -ShareProperties @("oplocks","accessbasedenumberation","changenotify"), then I get this:
Add-NcCifsShare: ShareProperties parameter specified, which is not supported for REST call
I will have to create a hundred shares in the next few days, and I really REALLY don't want to do it manually. What am I missing?