Quantcast
Viewing all articles
Browse latest Browse all 21975

Compairing information with the DHCP Server

Hello Guys/Gals;

So I have the following line:

$info=Get-ADComputer testcomputer -Propertiesipv4address,DistinguishedName

I then get the ipv4address information by typing $info.IPv4Address

192.168.1.100 (for example)

When I try to remote into the computer by computer name, I get an error saying it's not on the network.  When I try and remote into it using the IP Address, it works just fine however, When I check the computer name of the computer I am remoted into, it's a different computer all together (Lets say it's testcomputer2)

When I check the DHCP Server to see what is assigned to 192.168.1.100 it shows testcomputer2.  When I manually search all the scopes for the orginial computer "testcomputer" it's no where to be found.

So at this point I know it's a DNS issue.

What I need to know, is if there is a way I can use powershell to cross reference 192.168.1.100 and see if it matches the name in the $info array and tell me "Yes it matches" or "No it doesn't match".  Or if automatic cross referencing is not possible (or too complex), then maybe tell me what DHCP has listed for the computer that has the 192.168.1.100 IP address.  I want DHCP to tell me this because at this point DNS is horked up.

Any help would be greatly appreciated.

IMPORTANT NOTE: DHCP Server = 2008 R2 Enterprise





Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>