I need a simple VB scripted that will query and active directory domain controller for the login script path from thier users profile information.
I am using the following to get the username from the local computer....
Set WshShell = CreateObject("WScript.Shell")
Set objEnv = WshShell.Environment("Process")
strUsername = ObjEnv("Username")
I need to know how to do an LDAP query using the username to retrieve the login script information.
Any help would be greatly appreciated