F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

cwong_136301's avatar
cwong_136301
Icon for Nimbostratus rankNimbostratus
Oct 30, 2013

Question about error duirng adding inControlSnapIn in PowerShell

I am new to Powershell and icontrol. I was setting up the Powershell to use icontrol. When I tried to add iControlSnapIn using the command Add-PSSnapIn iControlSnapIn. The following error was displaying. Does anyone have any idea how to fix it? Thank you.

 

PS> 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=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

 

1 Reply

  • I was beating my head against a wall trying to find how to correct this exact same issue after re-installing the icontrolsnapin on my machine. Running this in powershell fixed the issue and I was able to load the snapin via add-pssnapin icontrolsnapin.

     

    c:\windows\Microsoft.Net\Framework64\v2.0.50727\installutil.exe iControlSnapin.dll /LogFile=

     

    I found the fix in this thread. https://devcentral.f5.com/questions?pid=17081