IsReadable
Indicates whether the data associated with the computer object is readable using the current permissions.
Syntax
bool IsReadable {get;}
Property value
Returns true
if the computer object is readable, or false
if the object is not
readable.
Discussion
This property returns a value of true
if the user accessing the computer object
in Active Directory has sufficient permissions to read its properties.
Example
The following code sample illustrates using IsReadable
for a computer object in
a script:
...
set objZone = cims.GetZoneByPath("LDAP://CN=research,
CN=zones,CN=centrify,CN=program data,DC=sierra,DC=com")
'Identify the computer account
Set objComp = cims.GetComputer("ajax.org/Computers/backup78”)
If not objComp.IsReadable then
wScript.Echo “Computer account is not readable!”
end if
...