Link to home
Start Free TrialLog in
Avatar of Fr. Vandecan
Fr. VandecanFlag for Belgium

asked on

powershell - ActiveDirectory - get the fax number of a speciic user and put it into a variable

I'm struggeling with something which should be easy as that....

Function GetItemFromAdUser($strUser,$strItem) {
                $strVariable = Get-ADUser -filter "Name -like '$strUser'" -properties $strItem | Expand $strItem
}

$Fax = GetItemFromAdUser('fvandecan" "fax")

but nothing in Fax.... (neither in city etc...)
Where is my mistake?
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
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: oBdA (https:#a42352719)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer