For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

WaterlooSysAdmi's avatar
Jan 21, 2021

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

  • 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.