- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- Powershell Error - Can't multithread to Connect-HP...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2017 09:10 AM
11-10-2017 09:10 AM
Powershell Error - Can't multithread to Connect-HPOA or Connect-HPBIOS
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2017 10:29 PM
11-12-2017 10:29 PM
Re: Powershell Error - Can't multithread to Connect-HPOA or Connect-HPBIOS
Hi,
Can you share the csv details like how you are inputing the data in csv (you can mask the ip address and other senstive details).
Below is the format of csv you should use incase its worng.
PS C:\Windows\system32> $csv = Import-Csv -Path "C:\Temp\inputcsv.csv" -Verbose
PS C:\Windows\system32> $csv
OA Username Password
-- -------- --------
192.168.10.201 administrator xyz
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 03:13 AM
11-14-2017 03:13 AM
Re: Powershell Error - Can't multithread to Connect-HPOA or Connect-HPBIOS
Hi,
It would be more clear if you add complete command which you are trying to execute.
Looks like you are direct passing imported csv object to Connect-HPOA Cmdlet. That leads to error for type mismatch.
Try it like below snippet.
1$csvObj = Import-CSV C:\CsvInput.csv
Connect-HPOA -IP $csvObj.IP -Username $csvObj.Username -Password $csvObj.Password
I am a HPE Employee