How to stop extracting/viewing users details from AD

There are several tools/script available for extracting all user information from AD. Any domain users can access this information by default.

For an example, using following attached .vbs script, we can dump entire AD users base to a excel file with following fields.

  ADExport Script (1.8 KiB, 561 hits)


SamAccountName
CN
FirstName
LastName
Initials
Descrip
Office
Telephone
Email
WebPage
Addr1
City
State
ZipCode
Title
Department
Company
Manager
Profile
LoginScript
HomeDirectory
HomeDrive
Adspath
LastLogin
Primary
SMTP

I think, it is kind of security risk.

This can be block, you just have to follow few steps:

1. You have to create a security group. Here we create blockinfo group

image

2. Now you have to restrict List Content and Read All Properties on OU where all users are stored and add the normal users into this group.

image

3. To test, run the above script again, and you will get no output.

With this you can prevent block any reporting tool/script.. 🙂

Disclaimer: All posts and opinions on this site are provided AS IS with no warranties. These are our own personal opinions and do not represent our employer’s view in any way.

This article currently have 5,565 views

Saugata
Follow me

CC BY-ND 4.0 This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.