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

Windows for business | Windows Server | User experience | PowerShell
{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.