
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2009 11:13 AM
I would like to do a query of computers that are in a certain OU, how do I do this ?
Thanks in advance !
Thanks in advance !
Labels:
- Labels:
-
Report Center
13 REPLIES 13

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2009 10:01 AM
Thanks ! That works a lot better, although the column LastknowIP doesn't exist in the table tbclComputers. Now I'm trying to get information of the model of the computers, how do I this ? I've tried to add the tblComputersystem at SELECT, but then it gives me an error. Any Ideas ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2009 08:23 PM
SELECT dbo.tblComputers.Computername, dbo.tblComputers.Domain, dbo.tblComputers.LastknownIP, dbo.tblADComputers.OU,
dbo.tblADComputers.Lastchanged
FROM dbo.tblADComputers INNER JOIN
dbo.tblComputers ON dbo.tblADComputers.Computername = dbo.tblComputers.Computername
WHERE (dbo.tblADComputers.OU = 'ou you want')

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2009 11:45 AM
Thank you for your quick reply, however, I'm not an SQL guru. Do you have a sample query I can use ?
Thank you !
Thank you !

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2009 11:23 AM
You need to link the tables "tblcomputer" and "tblADcomputers"
use the OU field in tbladcomputers.
use the OU field in tbladcomputers.
