Jump to content
Sign in to follow this  

LDAP Query into Active Directory using Autoit?

Recommended Posts


I am trying to determine what site a computer exists in using a LDAP query, and was wondering if Autoit can do this?

Thus far, I have this in VBS:

Set oADsSysInfo = CreateObject("ADSystemInfo")

sSiteName = oADsSysInfo.SiteName

' use only lowercase text in the site names tests

Select Case LCase(sSiteName)

Case "Site1"

MapDrive "k:", "\\server1\share"

Case "Site2"

MapDrive "k:", "\\server2\share"

Case "Site3"

MapDrive "k:", "\\server3\share"

End Select

Am I able to convert this into a Autoit script?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.