Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
List of all computers returns severl entries for some PC's
mullendg
#1 Posted : Tuesday, May 18, 2010 2:16:15 PM

Rank: Premium user

Groups: Premium Users
Posts: 4
Location: Milton Keynes, UK
I am using the following query anmd it give me multiple lines for some PC's, is there a way to resolve this please?

Select tblComputers.Computer, tblComputers.LastknownIP,
dbo.tblComputersystem.Manufacturer, dbo.tblComputersystem.Model,
tblComputerSystemProduct.IdentifyingNumber, tblComputers.Userdomain,
tblADusers.Displayname, tblADusers.Description, tblADusers.Office,
tblComputers.Username, tblADusers.Telephone, tblADusers.Mobile,
tblADusers.email, tblADusers.Department, tblADusers.Title,
tblComputers.Lastseen
From dbo.tblComputersystem Inner Join
tblComputers On tblComputers.Computername = dbo.tblComputersystem.Computername
Inner Join
tblComputerSystemProduct On tblComputers.Computername =
tblComputerSystemProduct.Computername Inner Join
tblADusers On tblComputers.Username = tblADusers.Username
Where tblComputers.Userdomain Like '%DOMAIN1%' And
dbo.tblComputersystem.Domainrole < '2'
taeratrin
#2 Posted : Tuesday, May 18, 2010 3:38:17 PM

Rank: Premium user

Groups: Premium Users
Posts: 214
I ran the query against my data, but didn't find any duplicates. Could you post an example of the output?
mullendg
#3 Posted : Tuesday, May 18, 2010 6:49:14 PM

Rank: Premium user

Groups: Premium Users
Posts: 4
Location: Milton Keynes, UK
Computer LastknownIP Manufacturer Model IdentifyingNumber
780MTIMAGE 10.41.200.2 Dell Inc. OptiPlex 780 JFJZddd
780MTIMAGE 10.41.200.2 Dell Inc. OptiPlex 780 JFJZddd


Here you go...
Lansweeper
#4 Posted : Tuesday, May 18, 2010 7:39:51 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,369
You need to link table tblcomputers to tbladusers on both username and userdomain.
mullendg
#5 Posted : Thursday, May 27, 2010 8:56:46 AM

Rank: Premium user

Groups: Premium Users
Posts: 4
Location: Milton Keynes, UK
That seems to fix it, Many Thanks!
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba