I am having trouble in scripts using the -controller switch on commands. I keep getting an incorrect credentials message.
I have added the credentials (Add-NcCredential) and using the Connect-NcController command works fine and I get connected to the cluster or SVM. I was expecting these saved credentials to be used when I run a command and add the -controller switch, as it is not working I assume that is not the case?
Is there a different way to save credentials for this switch to work?
I can work around the problem by keep changing the cluster of SVM I am connected to, but that makes the scripts inefficient and clumsy, especially when creating a loop that needs to check information on a source and a destination system.