- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- Server Management - Remote Server Management
- >
- Powershell Error - Can't multithread to Connect-HP...
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP