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, 342 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 my own personal opinions and do not represent my employer’s view in any way.

Leave a Reply

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