Forum Discussion
Piers_72246
Oct 24, 2012Nimbostratus
Snap-in installed but cmdlets not visible
So I have the snapin installed and have a script that starts off with this code, straight from examples here
if ( (Get-PSSnapin | Where-Object { $_.Name -eq "iControlSnapIn"}) -e...
Piers_72246
Oct 25, 2012Nimbostratus
Sorry,
The Get-Command error happens at this line
$success = Initialize-F5.iControl -HostName $bigip -Username $user -Password $pass
additionally after I run it once (and hit the Add-PSSnapIn the first time if I run the commands you suggested I get the same error e.g.
Get-Command : The term 'Initialize-F5.iControl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12
+ Get-Command <<<< Initialize-F5.iControl
+ CategoryInfo : ObjectNotFound: (Initialize-F5.iControl:String) [Get-Command], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
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