Need to know if exists a cmdlet in powershell toolkit for enable and disable (set true or false snapdir-access property) access to snapdir for volumes.
We are trying to configure snapdiff backup but to achieve this is necessary to have enabled snapdir access to volumes (obious) and by default we have it disabled to prevent users to access snapshots through windows pervious versions tab.
We are looking for a way to enable and disable snapdir access for volumes using scripting.
Connect-NcController is the correct cmdlet to connect to a clustered Data ONTAP system. It defaults to HTTPS, whereas Connect-NaController defaults to RPC (which was supported on 7-mode, but not on cDOT, and hence the error).
You may find the Add-NcCredential cmdlet and this link useful to connect to a controller without interaction.