→ The Lansweeper Customer Excellence Awards 2024 - Submit Your Project Now! Learn More & Enter Here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rock11
Engaged Sweeper
Even though we have specific OUs in the "Only scan these OU paths" Lansweeper is still showing an OU of users that we don't want to display. How can I remove these users (6000 of them) and rescan?
4 REPLIES 4
Hemoco
Lansweeper Alumni
- By default, Lansweeper only pulls a user into the database when he is found to be logged onto a computer during a computer scan.
- Additional users can be detected through Domain User Scanning, which can be configured under Configuration/Scanning Setup/Scanning Methods.
- If an unwanted user OU has been scanned, run the script below under Configuration/Scanning Setup/Database Scripts to delete all users within the OU, replacing YourOU with the OU name. Reconfigure Domain User Scanning afterwards, under Configuration/Scanning Setup/Scanning Methods.
delete from tblADusers where OU = 'YourOU'

rock11
Engaged Sweeper
I tried this but ASSETS does not show users.
rock11 wrote:
I tried this but ASSETS does not show users.




This is true. I was thinking about computers. Users are simply extracted from Active Directory, and do not seem to be affected by OU filtering. I would suggest requesting this as a feature. Right now the only way to remove users from Lansweeper is to either delete them from Active Directory or mark their accounts 'Disabled' in AD. Then, under Server Options, there are options to delete such users from Lansweeper. (Not very helpful in your case, I'm sure.)
tvbowman
Engaged Sweeper
rock11 wrote:
Even though we have specific OUs in the "Only scan these OU paths" Lansweeper is still showing an OU of users that we don't want to display. How can I remove these users (6000 of them) and rescan?


If you added the OU filter after the scanning service had already started, it may have added many users to the queue. It will not automatically delete them simply by adding the OU filter, rather the filter should simply prevent future additions from other OUs.

Go to ASSETS - EDIT ASSETS
Use the Filter to show only those users in that OU (or OUs) you want to remove
Under "Display" select "ALL" (This should show all 6000 users you want to remove)
Click the top checkbox to make all of them selected
Press Delete on the left side panel.