Active Directory VBS scripting, The directory property cannot be found in the cache?
hi. not sure if in right part of forum, if not maybe can move it.
as big corporation a lot of different sites have made script simplifies linking , enabling of gpo's ous.s
a few times script has failed on 1 type of ou's, "newly" created ones.. ones has been in our ad couple of weeks can have problem. error script give me: directory property cannot found in cache.
here small part of script failes:
set objou = getobject("ldap://" & stroudn)
strgplink = objou.get("gplink") <- failes here
objou.put "gplink", strgplink & "[" & strgpoadspath & ";1]"
objou.setinfo
now thing is, when run on our management server failes.. go client , run script , runs ok.
the go server again , run on sub ou in same problematic ou, before manually link gpo ou , run script , voila! works..
is problem description says? directory property cannot found in cache. local cache on server/computer unsynced rest of ad(if there any?) 1 of many dc unsynced , miss information? why start work after "trigger" ou manually?
as big corporation a lot of different sites have made script simplifies linking , enabling of gpo's ous.s
a few times script has failed on 1 type of ou's, "newly" created ones.. ones has been in our ad couple of weeks can have problem. error script give me: directory property cannot found in cache.
here small part of script failes:
set objou = getobject("ldap://" & stroudn)
strgplink = objou.get("gplink") <- failes here
objou.put "gplink", strgplink & "[" & strgpoadspath & ";1]"
objou.setinfo
now thing is, when run on our management server failes.. go client , run script , runs ok.
the go server again , run on sub ou in same problematic ou, before manually link gpo ou , run script , voila! works..
is problem description says? directory property cannot found in cache. local cache on server/computer unsynced rest of ad(if there any?) 1 of many dc unsynced , miss information? why start work after "trigger" ou manually?
hi,
normal behavior. have tested on system, if old ou doesn’t have gpo, gplink not populated , caused error.
please refer following article create script link gpo ou.
scripting addition of group policy links
http://support.microsoft.com/kb/248392
thanks.
this posting provided "as is" no warranties, , confers no rights.
normal behavior. have tested on system, if old ou doesn’t have gpo, gplink not populated , caused error.
please refer following article create script link gpo ou.
scripting addition of group policy links
http://support.microsoft.com/kb/248392
thanks.
this posting provided "as is" no warranties, , confers no rights.
Windows Server > Directory Services
Comments
Post a Comment