Forum Discussion
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
- Danielseyoum
Altostratus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com