8007200A "specified directory service attribute or value does not exist" error


i truing use active directory show computer user has logged by using logon script  that update user's logonworkstation

but error 8007200a "specified directory service attribute or value not exist" error

this code used

const ads_property_update = 2   dim objsysinfo, objuser, objnetwork, strcomputer, strdescription  set objsysinfo = createobject("adsysteminfo")  set objuser = getobject("ldap://" & objsysinfo.username)  set objnetwork = createobject("wscript.network")  strcomputer = objnetwork.computername  strdescription = "logged on " & strcomputer & " @ " & date & " " & time  objuser.put "logonworkstations", strdescription  objuser.setinfo

hi,

have mistyped ad attribute name  for logon workstation in script.
please find the highlighted spot in below script correct ad attribute name  for logon workstation.

const ads_property_update = 2 
dim objsysinfo, objuser, objnetwork, strcomputer, strdescription
set objsysinfo = createobject("adsysteminfo")
set objuser = getobject("ldap://" & objsysinfo.username)
set objnetwork = createobject("wscript.network")
strcomputer = objnetwork.computername
strdescription = "logged on " & strcomputer & " @ " & date & " " & time
objuser.put "logonworkstation",strdescription 
objuser.setinfo

fyi: after editing ad attribute name  for logon workstation in above script , have tested script updating ad user logon workstation using gpo - logon script, working fine. 

regards,
gopi
jiji technologies



Windows Server  >  Directory Services



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...