My group has been tasked to locate a large amount of computers on our company network.
right now the standard they are using is just calling clients asking them where the PCs are. It’s a headache becuase 50% of the clients called don’t know.
I’m trying to put togther a windows script that will
1. Ping computername and resolve the ip address.
2. use the ip address and compare it to know subnets on out company network to find out what subnet it is on.
I have a list of subnets that my company uses.
example:
————
Network:Downtown Building B
141.179.234.0/23
———–
NOW..my questions.
What type of formula would I use to find out what subnet a particular IP address is on ?
At my disposal:
1. host IP address
2. Subnet mask of host
3. A list of known subnets used by our company.
Thanks in advance for any advice =T
interactive, where Subnet.Script will call the other needed
routines automatically, assuming the .bat files were placed in
a folder found in your %path%.
Here’s what my %path% looks like:
Most of my stuff is stored in “\\DL380-SERVER\LAN Path” and “\\DL380-SERVER\LAN Path\exes”, with a couple of
“local” .bats stored in “c:\path”, folders I created myself.