Forum Discussion

John_LeMay_1062's avatar
John_LeMay_1062
Icon for Nimbostratus rankNimbostratus
Nov 27, 2007

Getting 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>

 

2 Replies

  • 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.

     

     

    The format of all cmdlets is now:

     

     

    VERB-F5.NOUN

     

     

     

    So, to get a list of cmdlets you can use this cmdlet

     

     

    PS > Get-F5.iControlCommands

     

     

     

    Just add "F5." before the nouns and you should be set.

     

     

    Sorry for the confusion, I had to upload the latest bits I've been working due to a partner project and I haven't had time to update the documentation/tutorials.

     

     

    Let me know if this works for you...

     

     

    -Joe