Function EnumObjProps($object) Dim $Class, $Schema, $Value, $property, $cont $Class = GetObject($object.schema) ? "Class: " + $Class.Name ? "GUID: " + $Class.GUID ? "Implemented by: " + $Class.CLSID If $Class.Container ? ? "Container Object" ? "Class Contains:" For Each $cont In $Class.Containment ? " " + $cont Next Else ? ? "Leaf Object" EndIf ? "Mandatory Properties in this Class: " For Each $property In $Class.MandatoryProperties ? " " + $property Next ? ? "Optional Properties in this Class: " For Each $property In $Class.OptionalProperties ? " " + $property Next EndFunction
Examples: $A = GetObject("WinNT://myComputer,computer") EnumObjProps($A) $A = GetObject("WinNT://myDomain/user1,user") EnumObjProps($A) $A = GetObject("LDAP://us-tyco-e/CN=BULLOCKHA,OU=test,OU=9826,OU=NCS,OU=Machines,DC=us,DC=tycoelectronics,DC=com") EnumObjProps($A) {edit} I removed the getting and printing of property values since some datatypes cause script failures.
Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.
") !=-1) { tempah=tempah.substring(tempah.indexOf("")+5,tempah.indexOf("")); codes[i].innerHTML="" + dotag(tempah.substring()) + ""; } } //var pres = document.getElementsByTagName("pre"); //for (var i=0, maxi = pres.length; i < maxi; i++) { // var tempah = pres[i].innerHTML; // if (tempah.indexOf("[postprep") !=-1) { // tempah=tempah.substring((tempah.indexOf("]",tempah.indexOf("[postprep"))+1)); // pres[i].innerHTML=dotag(tempah); // } //} function ytag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = codes[which_one].innerHTML; codes[which_one].innerHTML = "" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; } function ttag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = ""; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; }
")+5,tempah.indexOf("
" + dotag(tempah.substring()) + "
" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + "
"),thisone.indexOf("
"; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + "