Hello,
I'm trying to get the profile path for a specific user in Active Directory.
I have the following code that will return all users:
Const ADS_PROPERTY_CLEAR = 1
Set objOU = GetObject("LDAP://ou=Users,dc=Work,dc=com")
objOU.Filter = Array("user")
For Each objUser In objOU
wscript.echo "Name: " & objUser.Name
wscript.echo "Profile Path: " & objUser.ProfilePath
Next
How can I filter the results so that information is returned for a specific user?
Thanks for any assistance!
I'm trying to get the profile path for a specific user in Active Directory.
I have the following code that will return all users:
Const ADS_PROPERTY_CLEAR = 1
Set objOU = GetObject("LDAP://ou=Users,dc=Work,dc=com")
objOU.Filter = Array("user")
For Each objUser In objOU
wscript.echo "Name: " & objUser.Name
wscript.echo "Profile Path: " & objUser.ProfilePath
Next
How can I filter the results so that information is returned for a specific user?
Thanks for any assistance!