How to find all machines in subnet - VBS or Powershell
Hi
(for the want of finding an MS group for this)
I want to enumerate through all machines within our subnet finding both domain and workgroup machines.
>> Script URL or sample (google has failed me)
If you use LDAP queries, this returns all machines in the AD but will exclude machines which are in WORKGROUPs, i.e. not in the domain. 95% of machines are in the domain, i want to find Workgroup machines as well.
(e.g. typically scripts like
http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/8f23b89d-52f8-45b0-ad32-6d7b8f9cb2e3/ )
Bonus question
>> Any backdoor into a Workgroup machine to run a remote WMI query on it as generally you get an access denied as you are not a valid user ?
Thanks
August 15th, 2012 4:11am
Hi Greg,
instead of scripts, you might want to try some very useful freeware utilities from nirsoft.net
NetResView - View all computers/shares on your network.
http://www.nirsoft.net/utils/netresview.html
FastResolver - Host Names/IP Addresses/MAC Address Scanner
http://www.nirsoft.net/utils/fastresolver.html
OR
You may also try Nmap Network Scanning
http://nmap.org/book/inst-windows.htmlI do not represent the organisation I work for, all the opinions expressed here are my own.
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
- .... .- -. -.- ... --..-- ... .- -. - --- ... ....
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2012 6:04am
Thanks Santosh, what i did not say is that havng found these machines i will go on to run a VBS script to see if specific programs are installed.
Closing this thread in favour of the info i found in http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/8aa9277a-a1a0-4079-890d-b5be5f18bc3b
August 15th, 2012 9:15am