Hi all,

Does anyone have or knows where I can get the script that will search my AD
and create a txe or CSV file listing all the Computers

Thank you.

Re: List all Computers in the domain. by rwh

rwh
Mon Nov 07 14:34:07 CST 2005

ldifde -f computers.txt -d "dc=mydomain,dc=domain,dc=com" -r
objectClass=computer -l cn


Re: List all Computers in the domain. by Thornster

Thornster
Mon Nov 14 08:48:32 CST 2005


Using a vb script to create the file:

Set fso=CreateObject("Scripting.FilesystemObject")
Set fileOutput = fso.CreateTextFile("AdPCList.txt",False)
Set ntDomain = GetObject("WinNT://YOURDOMAIN.ORG")
ntDomain.Filter = Array("Computer")
For Each eachPc In ntDomain
fileOutput.Writeline eachPc.Name
Next
fileOutput.Clos


-
Thornste
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------