You get the error even if you have the correct permission and the correct syntax but you enter the path with wrong casing.
When entering a path needed for a CLI command the path is case sensitive.
Make sure that you are not encountering any of the problems bellow:
1) Check the error message to see if there are any indications of a syntax issue.
2) If you are adding a volume, check that the non-priviledged smartdisk user has rights to the disk.
3) For general configuration changes, check that the files in the directory $IDP_ROOT/diskmanager/etc are owned by the non-priv smartdisk user.
Note : $IDP_ROOT is where smartdisk was installed.
4)- Make sure that you enter the path with the same casing as of the path you see when you issue 'smartdisk.bat config --show'
For example, if you are trying to update the store folder in the path "E:\NetVault SmartDisk\store" to deny "Chunck Index"
a)- You will get an error if you enter the following command:
smartdisk.bat config --update --volume "E:\Netvault smartdisk\store" --deny "chunk index"
Failed to apply configuration
Notice that the letter 's' and the letter 'd' in this command is lower case and not upper case as in the path for the store folder
Even though the Windows OS does not distinguish between lower and upper case for a path: "E:\Netvault smartdisk\store" is different from "E:\Netvault SmartDisk\store" when entering a smartdisk CLI command.
b)- You must enter the path with the same casing as the path was created:
smartdisk.bat config --update --volume "E:\Netvault SmartDisk\store" --deny "chunk index"
Configuration applied successfully
Notice that the word SmartDisk entered now is with the same casing as the path that you see when you issue 'smartdisk.bat config --show'