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

Displaying get-qaduser properties

$
0
0

Hi,

 

I'm a bit confused with the results I get when trying to display properites of an object returned from get-qaduser (ArsuserObject).

 

If I first get the user object:

$user = get-qaduser Test1

 

$user.displayname returns:

Firstname Lastname

...as I'd expect

 

Write-Host "DisplayName is $user.DisplayName" returns:

DisplayName is DOMAINNAME\TEST1.displayname

...not what I'd expect

 

I'm a bit lost as to whats going on here. If I look at the object, each property appears to be a single instance and not an embedded object so I'm not sure why this doesn't work... can someone explain whats going on here?

 

Why do properties display Ok when not wrapped inside quotes. I can usually do this sort of thing with other generic (non QAD) objects.

 

Todd


Viewing all articles
Browse latest Browse all 1277