Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Removing Old Computers Placed By Resource Discovery Into Database

Updated: 04 Aug 2008 | 5 comments
Bcomp's picture
0 0 Votes
Login to vote

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

Comments

pebcak's picture
06
Aug
2008
0 Votes 0
Login to vote

This fails for me with an

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

Senior Consultant @ Creative Breakthroughs, Inc. a Symantec Platinum Partner

http://www.cbihome.com/

setral's picture
06
Aug
2008
0 Votes 0
Login to vote

That's odd, this query

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.

neil_rogers's picture
06
Aug
2008
0 Votes 0
Login to vote

change the DB

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

jjesse's picture
03
Sep
2008
0 Votes 0
Login to vote

change the db name?

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

Jonathan Jesse
Director of Training
ITS Partners

Jonathan Jesse Practice Principal ITS Partners

jcbazemore's picture
10
Feb
2010
0 Votes 0
Login to vote

I know this is an old thread,

I know this is an old thread, but in case someone else is referring to it:

To create a new collection in Console 6.5, I did not put the USE DBNAME at all in the 'Enter SQL Directly:' section.  The query starts with the Select keyword and everything works for me.