HewlettPackard / PowerShell-ProLiant-SDK

PowerShell sample scripts for managing HPE servers
https://www.hpe.com/servers/powershell
90 stars 42 forks source link

HpeILOCmdlets v3.3.0 failing with PWSH v7.3.0 #83

Open crlogic opened 2 years ago

crlogic commented 2 years ago

Expected behavior: cmdlet returns information (v7.2.7 is ok) Actual behavior:

Get-HPEiLOServerInfo
Get-HPEiLOServerInfo: GenericArguments[0], 'HPE.iLO.Communication.RIBCL.DataEntity.TEMP', on 'T MaxInteger[T](System.Collections.Generic.IEnumerable`1[T])' violates the constraint of type 'T'.
hp-powershell commented 1 year ago

Hi ,

Our cmdlets are not yet enabled on powershell 7 , we shall bring this to our management and will let you know of the outcome of discussion .

Thanks & Regards, Powershell Team

crlogic commented 1 year ago

Thank you.

crlogic commented 1 year ago

In case others encounter this issue, you can use the following workaround.

Import-Module -Name HPEiLOCmdlets -UseWindowsPowerShell

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_windows_powershell_compatibility?view=powershell-7.3