' Verify That an Attribute is OperationalConst ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = &h00000004 strAttributeName = "cn=Canonical-Name" Set objSchemaAttribute = GetObject _ ("LDAP://" & strAttributeName & _ ",cn=schema,cn=configuration,dc=fabrikam,dc=com") intSystemFlags = objSchemaAttribute.Get("systemFlags") If intSystemFlags AND ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED Then WScript.Echo strAttributeName & " is operational."Else WScript.Echo strAttributeName & " is not operational."End If search for scripts
' Verify That an Attribute is OperationalConst ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = &h00000004 strAttributeName = "cn=Canonical-Name" Set objSchemaAttribute = GetObject _ ("LDAP://" & strAttributeName & _ ",cn=schema,cn=configuration,dc=fabrikam,dc=com") intSystemFlags = objSchemaAttribute.Get("systemFlags") If intSystemFlags AND ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED Then WScript.Echo strAttributeName & " is operational."Else WScript.Echo strAttributeName & " is not operational."End If
Download Home Scripts Copyright © 2001-2025 adersοft