Hello all, I believe I've stumbled upon a bug in the Connect-NaController cmdlet in the toolkit. To reproduce the issue, run the following code chunk:
Import-Module DataONTAP -Verbose
Connect-NaController "toaster"
You should get the following error:
Connect-NaController : Could not find file 'C:\Users\username\AppData\Local\Temp\m2tkuh8b.dll'.
At line:1 char:21
+ Connect-NaController <<<< ah-3040-1
+ CategoryInfo : NotSpecified: (:) [Connect-NaController], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,DataONTAP.PowerShell.SDK.ConnectNaController
Unfortunately, my script was several hundred lines of code, in which I was setting the $VerbosePreference variable to "Continue" (effectively the same as calling -Verbose on all cmdlets) and also had issues making the connection between the vague error message above and its cause so it took quite a bit of effort to find the root cause.
Hopefully, this can be addressed in an update. Thanks!