I need to retrieve the values in the cfCardNumber attribute with PowerShell

John Denney 0 Reputation points
2025-06-05T03:46:11.62+00:00

I have users in a specific OU in Active Directory and need to retrieve the values in the cfCardNumber attribute which is in the Attribute Editor. I have tried for an individual;

Get-ADuser -Identity "joe.bloggs" -Properties * | Select-Object Name,cfCardnumber

cfCardNumber is blank

and

Get-ADUser -Identity "joe.bloggs" -Properties * | Format-List

cfCardNumber does not even appear

How do I get this value?

Thank you

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,962 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.