Hi,
I know almost nothing about AD, but I need to retrieve an users email address from it. I would like to use the following vbs script:
on error resume next
Set objuser = GetObject("WinNT://TEST/someonesID,email")
strEmail = objuser.EmailAddress
wscript.echo "someonesID Email Address is " & strEmail
Is this possible??? or is there some version of this script that would work??
Any help would be greatly appreciated.
Thanks in advance.
I know almost nothing about AD, but I need to retrieve an users email address from it. I would like to use the following vbs script:
on error resume next
Set objuser = GetObject("WinNT://TEST/someonesID,email")
strEmail = objuser.EmailAddress
wscript.echo "someonesID Email Address is " & strEmail
Is this possible??? or is there some version of this script that would work??
Any help would be greatly appreciated.
Thanks in advance.