The Toolkit provides cmdlets for storing credentials. Check out the following cmdlets:
PS C:\> help *NaCredential
Name Category Synopsis
---- -------- --------
Add-NaCredential Cmdlet Save login credentials for a Data ONTAP controller.
Get-NaCredential Cmdlet List entries in the credentials cache.
Remove-NaCredential Cmdlet Remove saved login credentials for a Data ONTAP controller.
Connect-NaController and Connect-NcController will automatically use the credentials cache. For example, we can add the credentials for 10.61.169.28, then use Connect-NaController to connect without having to provide credentials:
Yes you would need to connect to all controllers first and do a "Add-Nacredential" to cache all of them, also let me figure out a way to iterate through all passwords in a txt file and connect, i would update you on that soon.