mounting ISO to HPe server-powershell

tested on HPe gen 8/9 – DL360 – BL460c – DL580

if you think you know what you are doing, just read the blue lines and skip my bla bla, otherwise, read on

First off, it will not work if you have a standard ILO license, the mount command later on will fail – maybe you are able to get by this if you write everything in redfish or something, but if you use the ilo cmdlets it will not work.

Most racks have an advanced license in our environment

If you work in a blade environment and you have standard ilo, you will have a job off asking advanced licenses through procurement and the HPe team.

Next up we have the firewall ports, you will have to communicate with the ilo, let’s say the ILO ip is, then you will have to open the firewall from where you want to execute the scripts to on port (443, 17988, 17990)

Then we have the cmdlets itself, should be downloaded from HPE website:


make sure you go supported:

2008R2 -> 1.5 latest release

Later then 2008R2 -> 2.0 or higher

You will also have to import them, so open PowerShell ISE and type:

Import-Module HPiLOCmdlets

We also need credentials, we do this via AD:

$credentials = Get-Credential

$iloentryip =

$ISOpath =

#this will mount the iso, the disablecertificate is because it is in our POC and i am lazy

Mount-HPiLOVirtualMedia -Server $iloentryip -Credential $credentials -DisableCertificateAuthentication -Device CDROM -ImageURL $ISOpath

#when you have it mounted, you want to connect to it, therefor we have this command to connect the server to the iso

Set-HPiLOVMStatus -Server $iloentryip -Credential $credentials -VMBootOption CONNECT -Device CDROM -DisableCertificateAuthentication

#setting first time boot to the CDROM device

Set-HPiLOOneTimeBootOrder -Server $iloentryip -Credential $credentials -Device CDROM -DisableCertificateAuthentication

Okay problems I had doing this:

IIS config:

It does not work with a local drive or something, you have to set up apache or IIS to host the iso, this is a minor work, after you set it up, test your isopath so you know it downloads.

directory browsing

Setting mimes types ( .iso and .img )


Server problems -> if it goes through boot with error, it somethimes does not boot from iso-> important for automation

Mode to UEFI Mode if using HPE SW RAID.

Caution,73,540,0x000A,POST Message,,,07/06/2018 15:36:00,42: POST Error: 292 – Invalid HPE Software RAID Configuration. HPE B140i SW RAID Mode is NOT supported when the Boot Mode is configured for legacy BIOS Mode. Action: Configure the Boot Mode to UEFI Mode if using HPE SW RAID.

try to do it manually, before you do it with scripts, this will give you a better error than through the cli.

if all goes well you should have something like this:

now you can use it to automate deployment or updating

Geef een reactie

Je e-mailadres zal niet getoond worden. Verplichte velden zijn gemarkeerd met *