Server Management - Remote Server Management
cancel
Showing results for 
Search instead for 
Did you mean: 

How to deactivate iLO license via powershell?

 
Highlighted
Occasional Advisor

How to deactivate iLO license via powershell?

So the set-hpeilolicense does say it can be used to activate or deactivate the license. But as you are required to enter a key, is there a specific key you can use to deactivate the license?

I know I could use a XML command and the older invoke-hpiloribclcommand but I am trying to do this in more pure powershell. 

Trying to remove some licenses so OneView can apply the license from there.

 

2 REPLIES 2
Highlighted
HPE Pro

Re: How to deactivate iLO license via powershell?

Hi,

Correct way of removing license is to assign empty strings for the Set-HPEiLOLicense -Key parameter. But due to a bug you can't assign empty string or null at present but it will be fixed in next release. 

Workaround is you can set the iLO to factory settings which will bring back the system to standard license state. But factory settings will wipe out the iLO configurations which you need to bring it back later.

Thanks,

Gokul

 


I am a HPE Employee

Accept or Kudo

Highlighted
Frequent Advisor

Re: How to deactivate iLO license via powershell?

Another workaround is to have an old version of HPIloCmdlets (1.5.0.0 for example) where you can invoke an XML file that has the "Deactivate" command inside of it.

The new versions of HPEILOCmdlets dont' support the invoke-XML method anymore, but that's why I have an old version always installed as well.  The XML invoking is very handy sometimes.