cancel
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

Hello,

 

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 test.abc.abc -Username test -Password test

Disable-F5.LTMVirtualServer VS_Test

 

Thank you for the help!

2 REPLIES 2

JRahm
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: https://github.com/joel74/POSH-LTM-Rest.

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