Forum Discussion
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