cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gutodb
Engaged Sweeper
I have several machines that do not communicate for more than 30 days, how do I remove them automatically?
6 REPLIES 6
mrmcfu
Engaged Sweeper
SQL
jmarmo
Engaged Sweeper III
delete from tblcomputers where lastseen < getdate()-30

How do I execute this? from the scripts window or as a custom action?
Hemoco
Lansweeper Alumni
jmarmo wrote:
delete from tblcomputers where lastseen < getdate()-30

How do I execute this? from the scripts window or as a custom action?


In the configuration program you can run it as an sql script
Hemoco
Lansweeper Alumni
you can try (not checked for syntax errors)

delete from tblcomputers where lastseen < getdate()-30
gutodb
Engaged Sweeper
Thanks for the information, but how do I identify and remove machines with more than 30 days without communication in the current version?
Hemoco
Lansweeper Alumni
The current version does not support automatic removal, you need to do this manually from the configuration utility.
The next version will support this.