ā10-05-2023 06:29 AM
Trying to automate the creation of BIOS policies in our environment, I've been able to set everything via powertools with the exception of setting P-SATA to AHCI. Anyone know if among the dozens of Set-UcsBois commandlets there is a way to enable that token?
TIA
Solved! Go to Solution.
ā10-05-2023 07:55 AM
This might work if you can't locate a cmdlet:
$biosPolicy = Get-UcsBiosPolicy -Name briamorr_test
$biosPolicypSataAhciDn = $biosPolicy.Dn.ToString() + "/tokn-featr-PCH SATA Mode/tokn-param-pSATA/tokn-setng-AHCI"
$assign = @{
IsAssigned = "yes"
}
Get-UcsManagedObject -Dn $biosPolicypSataAhciDn | Set-UcsManagedObject -PropertyMap $assign
I don't see a corresponding Set cmdlet for Get-UcsBiosVfPCHSATAMode as well, I'll send some feedback to engineering.
ā10-05-2023 07:55 AM
This might work if you can't locate a cmdlet:
$biosPolicy = Get-UcsBiosPolicy -Name briamorr_test
$biosPolicypSataAhciDn = $biosPolicy.Dn.ToString() + "/tokn-featr-PCH SATA Mode/tokn-param-pSATA/tokn-setng-AHCI"
$assign = @{
IsAssigned = "yes"
}
Get-UcsManagedObject -Dn $biosPolicypSataAhciDn | Set-UcsManagedObject -PropertyMap $assign
I don't see a corresponding Set cmdlet for Get-UcsBiosVfPCHSATAMode as well, I'll send some feedback to engineering.
ā10-05-2023 08:08 AM
That worked!...thank you.
I also saw the Get-UcsBiosVfPCHSATAMode - might want to provide feedback on that one as well, it doesn't seem to return anything useful, like what the token is actually set to.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide