Retrieving All Users from Active Directory (LDAP) Using VBScript

How can I get all users from Active Directory using VBScript?

+3
source share
1 answer
Dim oDomain = GetObject("LDAP://OU=YourOU,DC=YourDomain,DC=com")
For Each oUser in oDomain
  WScript.echo oUser.Get("distinguishedName")

Perhaps this will make you work?

+4
source

Source: https://habr.com/ru/post/1723663/


All Articles