- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!