BladeSystem - General
1752815 Members
6168 Online
108789 Solutions
New Discussion

Powershell Error - Can't multithread to Connect-HPOA or Connect-HPBIOS

 
rookie1082
Frequent Advisor

Powershell Error - Can't multithread to Connect-HPOA or Connect-HPBIOS

This is a cross post in hopes of getting more exposure:

Hello,
 
PLEASE NOTE:  CONNECT-HPEBIOS (released 10/2017) fixes the issue below.  CONNECT-HPOA STILL HAS THIS ISSUE.


I have a CSV that i'm importing with the fields IP, Username, Password to connect to a large amount of HP systems to set BIOS settings.  It's saying that it's having an error converting my PSOjects from the CSV to strings.

Does anyone have this issue or a workaround?  The recent release of HPEBIOSCmdlets fixed the connect-hpbios issue, but the issue still persists for the HPOACmdlets...

Connect-HPOA : Invalid input: Unable to cast object of type 'System.Management.Automation.PSObject' to type 'System.String'.
Parameter name: OA
At line:1 char:23
+ ... nectOA = $csvOA | Connect-HPOA -WarningAction SilentlyContinue -Force
+                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Connect-HPOA], ArgumentException
    + FullyQualifiedErrorId : HPOACmdlets.ConnectHPOA
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Powershell Error - Can't multithread to Connect-HPOA or Connect-HPBIOS