Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Error 222 dsGetChildPath()
strADRoot = dsGetProperty("LDAP://RootDSE", "DefaultNamingContext") lstSubnets = dsGetChldPath("LDAP://cn=subnets,cn=sites,cn=configuration,%strADRoot%", "subnet")In my case, it returns 222: Object cannot contain a specified class.
Is this because the container object's allowedChildClasses attribute is set to only one class (subnets)? I know in this case that means there should never be a non-subnet class object in this container, but I don't want a schema extension (by us or Microsoft) to break my script at some point in the future. Any ideas?
The specific error you mention is the result of a bug in the ADSI Extender. There is a new version of the extender (version 10007) that contains a fix for this problem. This version can be found in the usual place.
strADRoot = dsGetProperty("LDAP://RootDSE", "DefaultNamingContext") lstSubnets = dsGetChldPath("LDAP://cn=subnets,cn=sites,cn=configuration,%strADRoot%", "subnet")In my case, it returns 222: Object cannot contain a specified class.
Is this because the container object's allowedChildClasses attribute is set to only one class (subnets)? I know in this case that means there should never be a non-subnet class object in this container, but I don't want a schema extension (by us or Microsoft) to break my script at some point in the future. Any ideas?
strADRoot = dsGetProperty("LDAP://RootDSE", "configurationNamingContext") lstSubnets = dsGetChldPath("LDAP://cn=subnets,cn=sites,%strADRoot%","subnet")Check the MS documention on the context sensitivity of "RootDSE".
Article ID: W14762
File Created: 2001:11:08:12:39:52
Last Updated: 2001:11:08:12:39:52