Hi I'm trying to grab the value of a virtual attribute using the $DirObj rather than binding to the user object directly because it's obviously faster to do this but it's not returning any values.
e.g.
function Get-Value($obj, $attr) {
################################################
#
# Function to get an attribute value
#
trap { continue }
return $obj.Get($attr)
return $null
} # End Function Get-Value
$myVAvalue = Get-Value $DirObj "myVA"
$EventLog.ReportEvent($Constants.EDS_EVENTLOG_INFORMATION_TYPE,"User-reactToAccountStatusChange_v$scriptVersion >>>>>>> in Set-OOOState - myVAValue = $($myVAValue)")