Notification

Icon
Error

Help with customized report

Posted: Thursday, March 26, 2009 11:36:11 AM(UTC)
Ismail

Ismail

Member Posts: 45
0
Like
Hello,

I am stumped, I tried to run a customized report that would show me the following:

All servers (Domain controllers)
All member servers (Non DC's)
All Workstations (NON Servers)
All portable Workstations

In that same report I would like to view the following of each Computer:

Computer name
IP Address
Operating system
Computer manufacturer

Would anyone be kind enough to give me the SQL Query that would allow me to obtain this report ?
Cobra7
#-29Cobra7 Member  
posted: 3/26/2009 6:33:37 PM(UTC)
SO you pretty much want to see every Windows computer on the domain?
Ismail
#-28Ismail Member  
posted: 3/29/2009 12:38:36 PM(UTC)
Yes, indeed I do :)
Cobra7
#-27Cobra7 Member  
posted: 3/30/2009 6:45:40 PM(UTC)
SELECT
dbo.tblComputers.Computername,
dbo.tblComputers.Domain,
dbo.tblComputersystem.Domainrole
FROM
dbo.tblComputersystem
INNER JOIN dbo.tblComputers ON (dbo.tblComputersystem.Computername = dbo.tblComputers.Computername)


That should do it. The only problem is I have not upgraded to 3.5 so I don't know the table for an IP address. Someone else should be able to plug it in pretty quickly.
Ismail
#-26Ismail Member  
posted: 3/31/2009 8:11:34 AM(UTC)
Doesn't seem to be giving out any report whatsoever
Lansweeper
#-25Lansweeper Member Administration  
posted: 3/31/2009 9:32:32 AM(UTC)
Use this

Code:
SELECT dbo.tblComputers.Computername, dbo.tblComputersystem.Domainrole, dbo.tblComputers.Domain, dbo.tblComputers.LastknownIP,
dbo.tblComputersystem.Manufacturer, dbo.tblOperatingsystem.Caption
FROM dbo.tblComputers LEFT OUTER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername LEFT OUTER JOIN
dbo.tblComputersystem ON dbo.tblComputers.Computername = dbo.tblComputersystem.Computername
Ismail
#-24Ismail Member  
posted: 3/31/2009 11:16:44 AM(UTC)
Lansweeper wrote:
Use this

Code:
SELECT dbo.tblComputers.Computername, dbo.tblComputersystem.Domainrole, dbo.tblComputers.Domain, dbo.tblComputers.LastknownIP,
dbo.tblComputersystem.Manufacturer, dbo.tblOperatingsystem.Caption
FROM dbo.tblComputers LEFT OUTER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername LEFT OUTER JOIN
dbo.tblComputersystem ON dbo.tblComputers.Computername = dbo.tblComputersystem.Computername


This report works great but the problem is that the IP Address is empty.
TheWood
#-23TheWood Member  
posted: 4/24/2009 3:26:24 PM(UTC)
@lansweeper

This is almost a perfect query for me, i just need to add in the Model, Serial / Service Tag, Memory and CPU Number and Speed.

Any help will be greatly appreciated.

Regards

Matt

Top Rated

1 Lansweeper Lansweeper 5.2 (recent update)
by  MikeInLa  
Go to last post Go to first unread
Last post: 11/26/2014 9:57:29 AM(UTC)
2 Lansweeper Network Printer by user
by  mikesecond  
Go to last post Go to first unread
Last post: 1/1/2015 6:13:41 AM(UTC)
3 Lansweeper Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 3/19/2015 1:36:19 PM(UTC)
4 Lansweeper Deployment Organization
by  Niley  
Go to last post Go to first unread
Last post: 1/15/2015 3:19:39 PM(UTC)
5 Lansweeper Custom Fields for User Pages
by  novasam  
Go to last post Go to first unread
Last post: 3/18/2015 1:23:33 PM(UTC)
6 Lansweeper Better Backup
by  sullivane  
Go to last post Go to first unread
Last post: 5/26/2015 2:11:03 PM(UTC)
7 Lansweeper Network Printer Installation Script
by  enz1ey  
Go to last post Go to first unread
Last post: 5/5/2015 8:16:21 PM(UTC)

Active Discussions

Lansweeper Lansweeper 5.3 scanning issues
by  Susan.A   Go to last post Go to first unread
Last post: Today at 10:57:43 AM(UTC)
Lansweeper Add new credentials error LAN Sweeper 5.308
by  Susan.A  
Go to last post Go to first unread
Last post: Today at 10:12:42 AM(UTC)
Lansweeper Ricoh 3510 page count
by  dblameuser   Go to last post Go to first unread
Last post: Yesterday at 7:20:38 PM(UTC)
Lansweeper As Lansweeper works with dynamic IPs?
by  gustavo.decenci  
Go to last post Go to first unread
Last post: Yesterday at 6:25:26 PM(UTC)
Lansweeper HDD SMART report
by  CDISupport   Go to last post Go to first unread
Last post: Yesterday at 5:07:11 PM(UTC)
Lansweeper no MAC Adress is shown
by  Lindner  
Go to last post Go to first unread
Last post: Yesterday at 4:01:52 PM(UTC)
Lansweeper Where is the activity logs for LanSweeper
by  kaioshin2   Go to last post Go to first unread
Last post: Yesterday at 2:47:20 PM(UTC)
Lansweeper MSI Uninstaller
by  mickeyshowers  
Go to last post Go to first unread
Last post: Yesterday at 2:31:03 PM(UTC)