Property Name
Owner
Property Type
String
Description
Gets or sets the Owner for an Windows Securable object.
Remarks
Windows allows a user or group to be assigned as Owner if the user
performing the operation has 'O' permissions or has the user rights
or privileges. Note that the equivalent operation might not be
possible from Windows Explorer.
Example
Dim ObjSec As IObjectSecurity
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to the file c:\test.txt
ObjSec.AttachFile "c:\test.txt"
'Print the owner and then set it to "Administrators"
Debug.Print ObjSec.Owner
ObjSec.Owner = "Administrators"
See Also