Server Management - Remote Server Management
1843050 Members
2765 Online
110212 Solutions
New Discussion

Re: Powershell 7 and HPECmdlets

 
InsightAutomato
Occasional Advisor

Powershell 7 and HPECmdlets

Recently upgraded to pwsh 7 and having a problem with hpecmdlets (ilo, bios, ssa) not being found when pwsh 7 is opened up.

I have the modules in the correct folder where Pwsh can see them with get-module -listavailable, but the "exported commands" fields are blank,

Do hpecmdlets need a special installation method for pwsh 7?  Or do they only work properly on non-core powershell versions?

Screenshot 2025-12-02 at 10.59.50.png

1 REPLY 1
yesheswini_s
HPE Pro

Re: Powershell 7 and HPECmdlets

Hello @InsightAutomato ,

HPE’s iLO, BIOS, and SSA cmdlets were originally built for Windows PowerShell (the “full” .NET Framework edition), not PowerShell 7 (Core). They don’t export commands properly in pwsh 7 because they rely on .NET Framework APIs that aren’t available in .NET Core. To use them, you either need to run them in Windows PowerShell 5.1 or check for newer HPE modules that explicitly support PowerShell 7.
If you’re managing older servers (Gen7–Gen9):
1. Run the cmdlets in Windows PowerShell 5.1 (not pwsh 7).
2. You can launch it side-by-side with pwsh 7; both can coexist.
If you’re managing newer servers (Gen10+):
1. Install the updated modules from the PowerShell Gallery:
Install-Module -Name HPEiLOCmdlets
Install-Module -Name HPEBIOSCmdlets
Install-Module -Name HPESmartArrayCmdlets
2. Alternative approach: Use HPE’s Redfish REST API directly with PowerShell 7 scripts if cmdlets aren’t available for your hardware generation.

Thank You!
I work with HPE but opinions expressed here are mine.
HPE Tech Tips videos on How To and Troubleshooting topics



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo