T-cko
asked on
Active Directory query script computers domain membership
Hello friends
i would like to ask you for your help regarding following AD query. I need a script where I will define;
- list of computers i would like to check in txt format (as source)
- let script to check if computers in source txt file are in domain or not
- write results to txt file, for each one computer in source txt file if it is or not in domain.
I dont want to touch anything else in domain so script should contain only this described query
As usual thank you very much :)
i would like to ask you for your help regarding following AD query. I need a script where I will define;
- list of computers i would like to check in txt format (as source)
- let script to check if computers in source txt file are in domain or not
- write results to txt file, for each one computer in source txt file if it is or not in domain.
I dont want to touch anything else in domain so script should contain only this described query
As usual thank you very much :)
ASKER
hello developertester
I would need to check if computers from my source file are members of domain or not and have a result about it - result like list of computers with bit saying that this or that hostname from source file is or is not in domain.
I would need to check if computers from my source file are members of domain or not and have a result about it - result like list of computers with bit saying that this or that hostname from source file is or is not in domain.
Do you want a VB script? Powershell? Or does it matter?
ASKER
Im sorry i forgot answer. i would preffer VB. thank you
Hopefully someone else can help as I gotta run out. Back next week and I'll help then if still needed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Here's a start in VB, but let us know and maybe we can give specifics.
http://activedirectorytools.net/export-computers-in-active-directory-script
Powershell would be the easiest way to go.