Created
July 28, 2020 21:13
-
-
Save ChrisLynchHPE/28c4bbe6799aa465cafffc12a8f99d1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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