I am working on a report to return all DNS servers used on clients. I seem to be getting multiple entries on some clients. It appears that windows stores previous configurations of cards. I have quite a few computers reporting that they have a previous configuration on one line, than the current configuration.
Select Top 1000000 dbo.tblComputers.ComputerUnique, dbo.tblComputers.Userdomain,
dbo.tblComputers.Username, dbo.tblNetwork.DNSServerSearchOrder As
[DNS server], dbo.tblNetwork.IPAddress, dbo.tblNetwork.Lastchanged,
dbo.tblNetwork.DefaultIPGateway, dbo.tblNetwork.DHCPserver,
dbo.tblNetwork.DHCPenabled
From dbo.tblComputers Inner Join
dbo.tblNetwork On dbo.tblComputers.Computername = dbo.tblNetwork.Computername
Where dbo.tblNetwork.DNSServerSearchOrder <> '' And dbo.tblNetwork.IPAddress <>
'0.0.0.0' And dbo.tblNetwork.IPEnabled = 1 And dbo.tblNetwork.IPAddress <> ''
Order By dbo.tblNetwork.DNSServerSearchOrder
Any thoughts on how to determine the correct entry, and cull the incorect entries for this report?
Thanks in advance,
jwagner