IsWritable
Indicates whether the data associated with the computer object is writable by the current user.
Syntax
bool IsWritable {get;}
Property value
Returns true
if the computer object is writable, or false
if the object is not
writable.
Discussion
This property returns a value of true
if the user accessing the computer object
in Active Directory has sufficient permissions to change the computer object’s
properties.
Example
The following code sample illustrates using IsWritable
for a computer object in
a script:
...
set objZone = cims.GetZone("ajax.org/UNIX/Zones/Pilot zone")
'Identify the computer account
Set objComp = cims.GetComputer("ajax.org/Computers/backup78”)
If not objComp.IsWritable then
wScript.Echo “You cannot save changes to this computer account!”
end if
...