Domains query against a set list of users

Hi

I have a list of userID's and I would like to run a powershell script to search across the 6 domains and identify which domain they are in and then select the object to identify if the user (employeetype) is an Employee or Contractor?

I can run this but it always defaults to the domain I am in -:
Get-Content c:\Contractors.csv | forEach {
Get-ADUser – Identify $_ -Properties employeetype
} | Export-Csv c:\AllContractors.csv

Any help will be gratefully appreciated as I am new to powershell

Thanks,

Parents Reply Children
No Data