Forum Discussion
John_LeMay_1062
Nimbostratus
Nov 27, 2007Getting PowerShell Working
This is probably not the right place for this, but I wasn't sure where to post questions regarding the PowerShell extensions.
Anyhow, I downloaded, installed, registered, but I can't seem to get this working here. The pasted text below shows the snapin is registered, but that neither get-icontrolcommands or initialize-icontrol are valid. Any help would be appreciated.
PS C:\Program Files\F5 Networks\iControlSnapIn> get-pssnapin
Name : Microsoft.PowerShell.Core
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains Windows PowerShell manag
ement cmdlets used to manage components of Windows PowerShell.
Name : Microsoft.PowerShell.Host
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains cmdlets used by the Wind
ows PowerShell host.
Name : Microsoft.PowerShell.Management
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains management cmdlets used
to manage Windows components.
Name : Microsoft.PowerShell.Security
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains cmdlets to manage Window
s PowerShell security.
Name : Microsoft.PowerShell.Utility
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains utility Cmdlets used to
manipulate data.
Name : iControlSnapIn
PSVersion : 1.0
Description : iControl Snap-in for F5 Device Management
PS C:\Program Files\F5 Networks\iControlSnapIn> get-icontrolcommands
The term 'get-icontrolcommands' is not recognized as a cmdlet, function, operab
le program, or script file. Verify the term and try again.
At line:1 char:20
+ get-icontrolcommands <<<<
PS C:\Program Files\F5 Networks\iControlSnapIn> initialize-icontrol
The term 'initialize-icontrol' is not recognized as a cmdlet, function, operabl
e program, or script file. Verify the term and try again.
At line:1 char:19
+ initialize-icontrol <<<<
PS C:\Program Files\F5 Networks\iControlSnapIn>
- I made a modification to the naming conventions of the Cmdlets based on a recommendation from Microsoft to include namespace prefixes. This way when our snapin is loaded along with other snapins there won't be naming conflicts.
VERB-F5.NOUN
PS > Get-F5.iControlCommands
- John_LeMay_1062
Nimbostratus
Works like a champ. Thanks for the quick response!
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