Thanks for the help,
I'm getting below error, could you pls assist.
PS C:\> $cred = Get-Credential
>> $cmd = "localcli hardware ipmi bmc get"
>> $session = New-SSHSession -ComputerName <xyz> -Credential $cred -AcceptKey
>> $result = Invoke-SSHCommand -SSHSession $session -Command $cmd
>> $result.Output
>>
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
New-SSHSession : The term 'New-SSHSession' 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:3 char:12
+ $session = New-SSHSession -ComputerName <xyz> -Cr ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-SSHSession:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Invoke-SSHCommand : The term 'Invoke-SSHCommand' 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:4 char:11
+ $result = Invoke-SSHCommand -SSHSession $session -Command $cmd
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-SSHCommand:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException