Removing Old Computers Placed By Resource Discovery Into Database

Removing Old Computers Placed By Resource Discovery Into Database

How will you be able to remove old computers that were placed by resource discovery into the database? This tech tip will tell you how to do so.

The easiest way is to create a collection which shows unmanaged computers for a discovery method. Once the collection is created, review the set of computer resources, then select the needed computers, right-click, and choose Delete.

Run the following SQL query to create this collection:

USE Altiris   --Or your database name
select vc.[Guid]
, Name
, IsManaged
from vComputer vc
join Inv_AeX_AC_Discovery dis on dis.[_ResourceGuid] = vc.[Guid]
where dis.[Discovery Method] in ('DomainMembership') AND IsManaged<>'1'
GO

3.363635
Average: 3.4 (22 votes)

This fails for me with an

pebcak's picture

This fails for me with an "Incorrect syntax near "USE". The DB name is correct.

That's odd, this query

setral's picture

That's odd, this query works perfectly fine for me, even doing copy/paste directly out of the text box.

Did you put ' ' marks around the DB name? If so, remove them that will cause a Syntax error.

change the DB

neil_rogers's picture

post the exact syntax you tried. (also make sure there are no funny characters in what you pasted)

also try
USE altiris -- <--change to the altiris db
select top 10 * from item

neil

change the db name?

jjesse's picture

When you installed Altiris did you set Altiris to use a diferent DB name then the default?

Jonathan Jesse
Director of Training
ITS Partners