Avatar of Pau Lo
Pau Lo
 asked on

Microsoft.ActiveDirectory.Management.ADPropertyValueCollection issue on get-aduser

We are trying to run:

get-aduser username -Properties * | select name, publicDelegates, publicDelegatesBL

But the output only returns Microsoft.ActiveDirectory.Management.ADPropertyValueCollection, despite knowing there are delegates setup.
Is there anyway round this? I dont understand why it doesnt return the correct information. I did wonder if its perhaps because there are a number of entries in both fields?
PowershellActive DirectoryMicrosoft Legacy OS

Avatar of undefined
Last Comment
Pau Lo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
footech

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Raymond Peng

When you run the command get-aduser username -Properties *
Do you see the property in there?

I know some properties won't show if they have empty values

what happens when you pipe get-aduser username -properties * | get-member
Pau Lo

ASKER
footech, no we didnt add the export to csv command
footech

Can you post a screenshot of the console after you've run the command?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Pau Lo

ASKER
footech sorry my mistake it was an issue when using the export-csv command, the results did show up in console, or if blank showed as

{ }

Many Thanks