
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2009 06:04 PM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2009 10:24 PM
Also deleting the profiles would be great as well. However if LS deletes the profile it still needs to be removed from AD correct?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2009 10:29 PM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2009 09:44 AM
Do you mean the users in the database or the actual profiles on the computers?
To delete the users you can use:
-90 = not seen in the last 90 days.
To delete the users you can use:
delete from tblADusers where lastchanged > getdate()-90
-90 = not seen in the last 90 days.
