Get-QADUser -oa searches for a user based on the -oa or other attribute value. For example, the following returns the name and logonname based on the employeeID:
get-qaduser -oa @{employeeID=123456}|select name,logonname
How do I combine the get-content filename commandlet with the get-qaduser -oa statement?
Thank you in advance.
Piping get-content to get-qaduser -oa
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- davstone23
- Posts: 2
- Last visit: Tue Apr 22, 2014 1:14 pm
Piping get-content to get-qaduser -oa
Yes, the file contains employee IDs. this works very well, thank you.