Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Can the $DirObj get virtual attribute values?

$
0
0

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)")


Viewing all articles
Browse latest Browse all 1277

Trending Articles