Forum Discussion
Redwan_120774
Nimbostratus
May 28, 2013Powershell iControlSnapIn Initialization Problem
Hi,
I am trying to use iControlSnapIn for a PowerShell project. Everthing works fine when I use the iControl Installer (.msi) to install and register iControlSnapIn files. However, this process ...
May 28, 2013
You could do a system reflection load ([System.Reflection.Assembly]::LoadFile(path_to_icontrol_dll); on the iControl.dll but that will only give you the raw .Net methods, not the cmdlet integration into the PowerShell runtime. If you want to go that route, you definitely could, you would just have to use the "new-object" cmdlet to get a iControl.Interfaces object and then call the initialize methods on that directly - essentially the same way you would with importing the iControl.dll into a Visual Studio project. In this case, the iControlSnapin.dll wouldn't be needed.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects