Link to home
Start Free TrialLog in
Avatar of SAM2009
SAM2009Flag for Canada

asked on

How to get only value in extensionAttribute10 of AD from PowerShell

How to get only value in extensionAttribute10 of AD from PowerShell?

I try this:

Get-ADUser SamAccount -Properties extensionAttribute10 | Select-Object extensionAttribute10

But get this:

extensionAttribute10
---------------------------------------------
XYZ123


I just want the value not the title included.

How can I just get the value: XYZ123?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SAM2009

ASKER

Good thanks!