Forum Discussion

Alex__Applebaum's avatar
Jun 28, 2012

How to update Powershell to use new v11 iControl calls

Newb to powershell so probably a stupid question but what is the proper way to update Powershell Snapin to use new v11 iControl calls. Thought it was as easy as updating the iControl.dll from something like:






but obviously not.






PS C:\Users\client1> (Get-F5.iControl).GlobalLBVirtualServer.get_list()




name address


---- -------












Simply want to start using the new v11 V2 calls.




PS C:\Users\client1> (Get-F5.iControl).GlobalLBVirtualServerV2.get_list()


You cannot call a method on a null-valued expression.


At line:1 char:51


+ (Get-F5.iControl).GlobalLBVirtualServerV2.get_list <<<< ()


+ CategoryInfo : InvalidOperation: (get_list:String) [], RuntimeException


+ FullyQualifiedErrorId : InvokeMethodOnNull










2 Replies

  • Alex, most likely your best bet is to download the latest installer and then run it. If that doesn't work, you might have to remove/re-install.



    Let me know if either of those steps don't work.



    I'm working on the 11.2 PowerShell version right now so I'll test the upgrade and report back.





  • Duhh, That would make sense. Was definitely having my little forest through the trees moment. Thinking I know it needs the new wsdl and didn't see the python dynamic equivalent wsdls = ['XXX', 'XXXX'] so thought could simply swap out a file or something :)



    In any case, completely uninstalled and Re-installed "iControl Cmdlets v11.0.0 msi" from:





    and worked like a charm. I'll be on the lookout for v11.2!