That worked. Thank you so much Pedro.
=========================================
$query = @{
Name = "volume name"
}
$attributes = @{
VolumeCompAggrAttributes = @{
tieringpolicy = "all"
}
}
Update-NcVol -Query $query -Attributes $attributes
================================================