Forum Discussion

mealies_60121's avatar
mealies_60121
Icon for Nimbostratus rankNimbostratus
Sep 29, 2011

error running add-pssnapin iControlSnapin

I need some help getting the powershell plugin to work. It was previously installed some months back but when i come to run it now i get errors.

 

 

 

My system specs are

 

XP sp3 x86

 

quad-core core2duo

 

4GB RAM

 

 

 

Am trying to run the command

 

 

add-pssnapin iControlSnapin

 

 

 

on my system but i keep getting this error message:

 

 

 

Add-PSSnapin : Cannot load Windows PowerShell snap-in iControlSnapIn because of the following error: The Windows PowerShell snap-in module C:\Program Files\F5 networks\iControlSnapIn\iControlSnapIn.dll does not have required Windows PowerShell snap-in strong name iControlSnapIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

 

At line:1 char:13

 

+ add-pssnapin <<<< iControlSnapIn

 

+ CategoryInfo : InvalidArgument: (iControlSnapIn:String) [Add-PSSnapin], PSSnapInException

 

+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

 

 

 

I have re-installed the icontrol snapin but the error keeps occuring. What am i doing wrong and what do i need to do to fix it

 

 

 

Cheers

 

 

Andrew

 

  • Hi Andrew, I've just updated the installer to include the most recent iControl assembly (11.0.0). Once you run the installer, you'll need to re-run the setupSnapin.ps1 script to re-register the snapin's latest version in the powershell runtime configuration. Let me know if that doesn't work for you.

     

  • Hey Joe

     

     

    I downloaded the iControlSnapIn.msi file yesterday from the downloads section in this group( so i assume this is the latest file).

     

     

    When i go to run setupsnapin.ps1 script it brings up the message Already registered

     

     

    This occurs even after uninstalling the icontrolsnapin from Add/Remove programs and restarting the PC.

     

     

    Do i need to go through and delete the registry entries?

     

     

    EDIT - i used your remove-Snapin function in the script to remove it before re-running . .\SetupSnapin.ps1

     

     

    this time it re-registered and now the snapin is usable again.

     

     

     

    Thanks

     

     

    Andrew