Subscribe
Accepted Solution

Is there a Disconnect-NaController or equivalent?

Hi,

Just wondering if there is a Disconnect-NaController or equivalent command like there is with vmware?

ie: Connect-VIServer & Disconnect-VIServer

As I just dont like still being connected to the filer after I have run a script or command

Re: Is there a Disconnect-NaController or equivalent?

Hi, James.  The Toolkit doesn't maintain persistent connections, so there isn't a disconnect cmdlet.  Connect-NaController saves the current connection context in the global variable $CurrentNaController, so you can set that value to null if you prefer, or use the -Transient switch to Connect-NaController, or just close the PowerShell session when you're done.

Re: Is there a Disconnect-NaController or equivalent?

I was wondering the exact same thing, thanks for the info