Microsoft PowerShell with F5

Microsoft Windows PowerShell command line shell and scripting language helps IT professionals achieve greater control and productivity.

Windows PowerShell allows IT professionals to more easily control system administration and accelerate automation.

The iControl PowerShell Snapin is a set of Cmdlets for Windows PowerShell that give you the full power of the iControl API.

To use the iControl PowerShell Snapin download and install it on your PowerShell working Station.

  1. Download iControlSnapInSetup.msi installer.
  2. Run the iControlSnapInSetup.msi installer.  This will install the SnapIn into the c:\program files\F5 Networks\iControlSnapIn directory.
  3. Start PowerShell.
  4. Cd to ‘C:\Program Files (x86)\F5 Networks\iControlSnapIn’ directory.
  5. Dot Source the setup script only once after the install   ./setupSnapIn.ps1
  6. Load the SnapIn into the Runtime – Add-PSSnapIn iControlSnapIn
  7. Initialize the iControl connection with the Initialize-F5.iControl CmdLet

Initialize-F5.iControl -Hostname bigip_address -Credentials (Get-Credential)

8. Run the Get-F5.iControlCommands CmdLet to list out all the available Cmdlets

Get-F5.iControlCommands

9.       Try out some of the CmdLets like Get-F5.LTMPool

MICROSOFT POWERSHELL WITH F5 pic 1

MICROSOFT POWERSHELL WITH F5 pic 2

MICROSOFT POWERSHELL WITH F5 pic 3

  • If you get error like this when trying to load the snap-in with Add-PSSnapIn iControlSnapIn than run these command lines:
  • c:\windows\Microsoft.Net\Framework64\v2.0.50727\installutil.exe iControlSnapin.dll /LogFile=
  • Add-PSSnapIn iControlSnapIn.
  • Initialize-F5.iControl -Hostname BIG-IP Address -Credentials (Get-Credential)

Source: Microsoft PowerShell with iControl

One thought on “Microsoft PowerShell with F5”

Leave a comment