Reply to Message

View discussion in a popup

Replying to:
BenLiebowitz
Expert
Expert

Update-Entity with Multiple Baselines

I'm trying to patch some hosts via a script I wrote.  However, the syntax I used in the past isn't working here. 

get-baseline -name *critical* | update-entity -entity $HOST -ClusterEnableParallelRemediation:$false -ClusterDisableHighAvailability:$true -confirm:$false

In the past, this picked up both the critical and non-critical host patch baselines, however this time it's only picking up the critical one. 

I read that update-entity can be passed multiple baselines, but even when I switched and tried using below, it isn't working. 

Update-Entity -entity $HOST -baseline {get-baseline | where {$_.Name -match "critical"}) -ClusterEnableParallelRemediation:$false -ClusterDisableHighAvailability:$true -confirm:$false

I thought about creating a baseline group and putting them both in there, but when i did that and did a get-baseline for the group, it doesn't find it.

Appreciate any help!

Thanks!

Ben Liebowitz, VCP vExpert 2015, 2016, & 2017 If you found my post helpful, please mark it as helpful or answered to award points.
Reply
0 Kudos