Forum Discussion
Setup iControlSnapin
I downloaded the powershell msi from this forumns download folder and follwed the steps on the tutorial to get it registered and I get the following error..
Assistance would be appreciated.
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> . .\setupSnapIn.ps1
Registering iControlSnapIn...
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.4927
Copyright (c) Microsoft Corporation. All rights reserved.
The installation failed, and the rollback has been performed.
Remove-Item : Cannot find path 'C:\Program Files (x86)\F5 Networks\iControlSnapIn\iControlSnapIn.InstallLog' because it
does not exist.
At C:\Program Files (x86)\F5 Networks\iControlSnapIn\setupSnapIn.ps1:8 char:5
+ del <<<< iControlSnapIn.InstallLog
+ CategoryInfo : ObjectNotFound: (C:\Program File...apIn.InstallLog:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot find path 'C:\Program Files (x86)\F5 Networks\iControlSnapIn\iControlSnapIn.InstallState' because
it does not exist.
At C:\Program Files (x86)\F5 Networks\iControlSnapIn\setupSnapIn.ps1:9 char:5
+ del <<<< iControlSnapIn.InstallState
+ CategoryInfo : ObjectNotFound: (C:\Program File...In.InstallState:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
- adrianallan_181Nimbostratus
Ok got this far but still having issues:
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> powershell -psconsolefile .\iControlSnapIn.psc1
- Are you by chance running on a 64-bit platform. Give this updated script a shot. I'm still getting feedback on it before I roll it into the primary distribution so let me know if it works for you.
- rmainar_77944Nimbostratus
I'm running 64-bit Win7 and here are the errors I'm getting after running the updated script you provided -
Registering iControlSnapin.dll on platform '64'
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> get-pssnapin -registered
- A couple of things. Looks like you got the install to complete. The problem is your add-pssnapin call. You are using the name of the snapin as the parameter name, not the parameter value. That's indicated by the "parameter cannot be found" error. The correct syntax is
PS> Add-PSSnapin -Name iControlSnapin
- rmainar_77944NimbostratusYup that helped immensely. I'm new to PS so I was just following the syntax on the Readme.txt file that came with the icontrol download. The instructions on them are not correct.
- rezilient_76720NimbostratusI second that, the instructions in the readme.txt say:
- Radim_Bosticka_NimbostratusDoes anybody have experience with Powershell 2?
- Radim_Bosticka_NimbostratusOK. Answer is here http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShellSetupSnapin.html
- venkiNimbostratus
If you have performed the instructions as suggested in the here: https://guptaashish.com/tag/powershell/
and if you still find the above error.
The most likely cause would be the permission to the below registry path to your current account. You will need to provide full control to the registry HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShell\1\PowerShellSnapIns .
Upon having full control, then re run the setupSnapIn.ps1 and you should be all set to proceed further.
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