1 of 1 people found this helpful
At the moment there's no neat way of doing this, but it's introduced in ePO 4.6 which is currently in beta. You can automate this kind of stuff via a scripting interface in 4.6 - sounds like exactly what you're after
Write a vbs script where you update one of the custom field (1-4) e.g. COSTUM1 in the epo database (ADODB.Connection) with a value you like e.g. "DELETE THIS SYSTEM" or something like that, them go into queries and make a query that select all systems with CUSTOM1 equal "DELETE THIS SYSTEM", then goto Server task and make a new task with actions "run query" and select the query you just make, and sub actions as "DELETE SYSTEM", schedule that to once every day, one a week or whatever you like, and you system will be delete in EPO. If you like a have an example update the customs field in visual basic script.
If you have ePO synchronising with AD then you can tick the option to remove it if deleted from AD. See the ePO Product Guide for configuration.
For an SQL query to delete you need to get the AutoID of the Node and then do the following. This will remove it from ePO but I can't guarantee this is a clean way of doing it, its just a way I have used before in the past.
DELETE FROM [dbo].[EPOLeafNode]
WHERE ([AutoID] = @AutoID);
Thanks for the good idea. My only problem here is that I need the machine to disappear right away, not in an hour or two. When I am reinstalling the OS on a machine in a "hand me down" situation, I need to have the machine delete itself from the database right away so that when the new OS is applied 10 minutes later, the machine will be joined to EPO as if it is new. And that should only happen sometimes.
So really I need to have a way to delete the machine right away. EPO 4.6's scripting function sounds interesting.