Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set oRoot = GetObject("LDAP://rootDSE")
sDomainPath = oRoot.Get("defaultNamingContext")
Set oConnection = CreateObject("ADODB.Connection")
oConnection.Provider = "ADsDSOObject"
oConnection.Open "Active Directory Provider"
sGroup = "DEPT_IT"
Set oRs = oConnection.Execute("SELECT adspath " & _
"FROM 'LDAP://" & sDomainPath & "'" & _
"WHERE objectCategory='group' AND " & _
"Name='" & sGroup & "'")
If Not oRs.EOF Then
sAdsPath = oRs("adspath")
msgbox(sAdspath)
Else
msgbox("Not in AD")
End If