Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

PowerShell - iControl



Can someone please tell me how to disable/enable a Virtual Server using iControl? Below is what I have so far. It authenticates fine and other commands work but I just can't seem to disable or enable a virtual server.


Add-PSSnapIn iControlSnapIn

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Initialize-F5.iControl -HostName -Username test -Password test

Disable-F5.LTMVirtualServer VS_Test


Thank you for the help!


Community Manager
Community Manager

That PS library hasn't been maintained in quite some time. One of our former MVPs has a more recent one you should check out:

Cool, thank you! I'll give it a try.