Hello,
I am trying to make a vbs script which gives me the first and last name of my AD User that runs the scripts Here is a part of the code:
But when I run It nothing happens, I have full test without ever seeing the name or surname , In my OU Users OU-I "sub" or "style of Students, Teachers, Admin please Give me Proper Suggestions and Code that you might Have use to Achieve the Following results.Code:Select All Set Root = GetObject("LDAP://RootDSE") DomainPath = Root.Get("DefaultNamingContext") Set Domain = GetObject("LDAP://" & DomainPath) Set objUse = GetObject("LDAP://OU=OU-Utilisateurs," & DomainPath) WScript.Echo "First Name: " & objUse.givenName
Bookmarks