I have attached a portion of a vb script that I am using, it works fine on two of the domains I have run it on (ie. strSiteObjectDN gets populated with the DN for ech subnet). I am having trouble with a third domain however, the script returns the error 'propert cannot be found in the cache' for the last line (implying that it is not happy about the 'siteObject' property.
Any ideas why this would be so?
strSubnetsContainer = "LDAP://cn=Subnets,cn=Sites," & strConfigurationNC
Set objSubnetsContainer = GetObject(strSubnetsContainer)
objSubnetsContainer.Filter = Array("subnet")
For Each objSubnet In objSubnetsContainer
objSubnet.GetInfoEx Array("siteObject"), 0
strSiteObjectDN = objSubnet.Get("siteObject")