Get-ADUser : A positional parameter cannot be found that accepts argument User1Get-ADUser : A positional parameter cannot be found that accepts argument User2Get-ADUser : A positional parameter cannot be found that accepts argument User3
You can't pass input from the pipeline while at the same time querying for all users using the Filter argument.
You should be able to just pipe the test file to Get-ADUser:
You should be able to just pipe the test file to Get-ADUser:
Open in new window
If this doesn't work: which attribute exactly do you have in $Source that uniquely identifies the user?