View Full Version : Which computers belong to my domain? (W2K)
ccoyne
02-04-2003, 05:54 AM
Can anyone offer scripting so that I can do an auto-discovery for a domain?
The scenario:
I'm in domain LONDON and want to know which servers are also in that domain. I'd like to know what the server names are, and then what their IP addresses are.
I've not had any luck finding the variables that will do the job. Any suggestions?
Thanks,
Colleen
auntieflorrie
02-04-2003, 02:55 PM
there are. but to protect your motives from suspicion you should get this info from your network admin.
ccoyne
02-05-2003, 05:38 AM
I AM the network admin!! I'm just not a programmer so I need help with the script.
Can anyone help?
auntieflorrie
02-05-2003, 05:57 AM
use server manager or look in wins database
ccoyne
02-05-2003, 07:23 AM
We don't use WINS but I've found a way around it anyway. Thanks for the tip, though. Maybe we'll be able to use it in the future.
You could also try the NETDOM.exe in the RSKIT, or check this link:
http://www.winguides.com/forums/showthreaded.php?Cat=&Board=brdScripting&Number=37155&page=&view=&sb=
domainName = "YourDomain"
Set dom = GetObject("WinNT://" & domainName)
dom.Filter = Array("computer")
For Each obj In dom
WScript.Echo obj.Name
Next
*******
* g707 *
*******
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.