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. SaugataI am an IT Professional with 12+ years of experience in Windows, Storage, Backup, AWS and Azure.