Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChrisLynchHPE/28c4bbe6799aa465cafffc12a8f99d1c to your computer and use it in GitHub Desktop.
Save ChrisLynchHPE/28c4bbe6799aa465cafffc12a8f99d1c to your computer and use it in GitHub Desktop.
$tasks = @()
# Get server profiles Apollo XL290 Gen9 server hardware type to then filter
$ServerProfiles = Get-OVServerProfile -InputObject (Get-OVServerHardwareType -Name "HPE ProLiant XL450 Gen9" -ErrorAction Stop)
ForEach ($serverProfile in $ServerProfiles)
{
# Change the profile Baseline property to "Managed Manually"
$serverProfile.firmware.manageFirmware = $false
$tasks += Save-OVServerProfile -InputObject $serverProfile -Async
}
# Get the status of all the tasks
$tasks | ForEach { Send-OVRequest -Uri $_.uri }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment