The HPE OneView PowerShell Library is published to the PowerShell Gallery and supports Windows PowerShell 5.1, PowerShell 7.x on Windows, and PowerShell Core 7.x on Linux and macOS.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
| Requirement | Details |
|---|---|
| PowerShell version | Windows PowerShell 5.1, or PowerShell 7.x |
| .NET Framework (Windows PS 5.1) | 4.7.2 or newer (requires Windows 10 1709+) |
| .NET (PowerShell 7.x) | Bundled with PowerShell 7 — no separate install needed |
| PowerShellGet | Included with PowerShell 5.1+; update with Install-Module PowerShellGet if needed |
Installing from PowerShell Gallery
- Windows
- Linux / macOS
- WSL (Windows Subsystem for Linux)
Open an elevated PowerShell session
Right-click Windows PowerShell or PowerShell 7 and select Run as Administrator.If you cannot use an elevated session, install for the current user instead (see the tip at the end of this step).
If you are running Windows PowerShell 5.1 and receive an error about a missing .NET Framework dependency when importing the module, download and install the .NET Framework 4.7.2 offline installer and then retry.
Offline / manual installation
If the target system does not have internet access, useSave-Module on a connected machine to download the module files, then copy and install them manually.
Save the module on a connected machine
On a machine with internet access and PowerShell, save the module to a local directory:This downloads all module files including the required
HPEOneView_Classes.dll assembly into C:\Temp\Modules\HPEOneView.1000\10.0.4265.2221\.Transfer the files to the target system
Copy the saved module directory to the target machine via USB, file share, or any available transfer method.
Place the module in a PowerShell module path
Move the module folder to one of the directories listed in Current user only:
$env:PSModulePath.System-wide (all users):Verifying the installation
Use these commands to confirm the module is installed and available:Get-OVVersion returns the library version (10.0.4265.2221) and the supported HPE OneView X-API version (7600).
Module version compatibility
Each library version targets a specific HPE OneView appliance API version. Choose the library version that matches your HPE OneView appliance.| Library module | HPE OneView version | PowerShell Gallery |
|---|---|---|
HPEOneView.1000 | 10.00 | HPEOneView.1000 |
HPEOneView.910 | 9.10 | HPEOneView.910 |
HPEOneView.900 | 9.00 | HPEOneView.900 |
HPEOneView.660 | 6.60 | HPEOneView.660 |
The library module version number corresponds directly to the HPE OneView appliance version. Use
HPEOneView.1000 with HPE OneView 10.00 appliances.Known limitations
Only one library version per session
Only one library version per session
The HPE OneView PowerShell library does not support loading multiple versions in the same PowerShell session. If you attempt to import a second version while one is already loaded, the import will fail with an error:Start a new PowerShell session to switch between library versions.
FormatPX not supported on PowerShell Core
FormatPX not supported on PowerShell Core
On Windows, the library uses FormatPX to fix formatting inconsistencies in
Format-List and Format-Table. FormatPX is not supported on PowerShell Core.As a result, when Get-OVNetwork returns results with multiple network resource types (Ethernet, Fibre Channel, FCoE), only the first type will render correctly in table format. The remaining types will display their full raw object properties.Workaround: Filter by network type to get consistent output:Get-OVCommandTrace verbose output limitation
Get-OVCommandTrace verbose output limitation
Get-OVCommandTrace generates a trace log, but due to a limitation in the .NET Standard API, verbose and debug messages emitted by the HPE OneView C# class library are not automatically captured in the trace file.If you enable verbose or debug output via [HPEOneView.Config]::EnableVerbose = $true or [HPEOneView.Config]::EnableDebug = $true, use Select All and copy/paste the console output into the generated log file when reporting issues.Next steps
Quickstart
Connect to your appliance and run your first commands
Appliance connections
Learn how multiple simultaneous connections work