cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Damien
Engaged Sweeper
Hi,

Im really new to Lansweeper so please forgive my ignorance.

Is there a script I can create that will allow LS to auto-delete users that have not logged in for "x" amount of time? We have hundreds of old profiles that need trimming and would take forever to go one by one.

Thanks in advance!

Damien
3 REPLIES 3
Damien
Engaged Sweeper
Also deleting the profiles would be great as well. However if LS deletes the profile it still needs to be removed from AD correct?
Hemoco
Lansweeper Alumni
Damien wrote:
Also deleting the profiles would be great as well. However if LS deletes the profile it still needs to be removed from AD correct?

lansweeper can't make any changes on the client, so this won't work anyway.
Hemoco
Lansweeper Alumni
Do you mean the users in the database or the actual profiles on the computers?

To delete the users you can use:

delete from tblADusers where lastchanged > getdate()-90


-90 = not seen in the last 90 days.