Piping get-content to get-qaduser -oa

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 15 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
davstone23
Posts: 2
Last visit: Tue Apr 22, 2014 1:14 pm

Piping get-content to get-qaduser -oa

Post by davstone23 »

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.


User avatar
davstone23
Posts: 2
Last visit: Tue Apr 22, 2014 1:14 pm

Piping get-content to get-qaduser -oa

Post by davstone23 »

Yes, the file contains employee IDs. this works very well, thank you.
This topic is 15 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked