Forum Discussion

Jeffrey_Silver1's avatar
Jeffrey_Silver1
Icon for Nimbostratus rankNimbostratus
Mar 04, 2014

icontrolsnapin.dll registered but cmdlets are not visible

Im using icontrol with Powershell and I am having an issue where the icontrolsnapin.dll says that it is registered, however the cmdlets are not visible doing the Get-Command -Module * command.

 

I have loaded and reloaded the dll and I am using the code examples from DevCentral for removing and adding the snapin. I am at a loss as to what to do next.

 

4 Replies

  • Add-PSSnapin : Could not load file or assembly 'iControl, Version=11.4.1.0, Culture=neutral, PublicKeyToken=275567876a54b5c7' or one of its dependencies. The system cannot find the file specified. At line:1 char:1 This is an error message that I get when trying to Add-PSSnapIn + Add-PSSnapin iControlSnapin + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-PSSnapin], FileNotFoundException + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.AddPSSnapinCommand
  • Once the Snapin is registered with Add-Pssnapin / you should be able to run Get-F5.iControlCommands to list all Powershell iControll commandlets.

     

  • I had the same issue. in order to solve this issue I re open the powershell x86. than I go direct to the folder for me it was: C:\Program Files (x86)\F5 Networks\iControlSnapIn And than I tried to install it again with the command:

    ./setupSnapIn.ps1

    output: Registering iControlSnapin.dll on platform '' Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5483 Copyright (c) Microsoft Corporation. All rights reserved.

    Registering iControlSnapin.dll on platform '64'
    Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5483
    

    than try on powershell 32bit to add the snapin:

    add-PSSnapIn iControlSnapIn

    good luck