Forum Discussion

Danielseyoum's avatar
Danielseyoum
Icon for Altostratus rankAltostratus
Jan 31, 2014

iControl and Powershell CLI

I am trying to add the iControlsnapin and am running into the following issue. I am running powershell 3

 

PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> Add-PSSnapIn iControlSnapIn

 

Add-PSSnapIn : Cannot load Windows PowerShell Snap-In iControlSnapIn because of the following error: The Windows PowerShell Snap-In module C:\Program Files (x86)\F5 Networks\iControlSnapIn\iControlSnapin.dll does not have required Windows PowerShell Snap-In strong name iControlSnapIn, Version=11.2.0.0, Culture=neutral, PublicKeyToken=null. At line:1 char:1 + Add-PSSnapIn iControlSnapIn + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (iControlSnapIn:String) [Add-PSSnapin], PSSnapInException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

2 Replies

  • Here are additional info if it could help to answer my question: installation was done from: iControlSnapInSetup_37.msi OS: Windows 7 SP1 64bit I did launch the PS "run as admin" PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> $Host Name : Windows PowerShell ISE Host Version : 3.0 InstanceId : 67fbb709-fdbc-474d-a76d-84935950bdbb UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-US CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace However, if I installed from icontrolsnapinsetup.msi, I don't have any issue. Is iControlSnapInSetup_37.msi the latest?????
  • Open a PowerShell console session as an Administrator, navigate to "c:\program files (x86)\F5 Networks\iControlSnapin" and run the "setupSnapin.ps1" with the "-force" parameter. That should clean things up.