Modifying DACL
From: Thomas Iwang (ti_at_ds.adp.dk)
Date: 11/08/03
- Next message: jay: "IE Explorer Home Page"
- Previous message: Steven L Umbach: "Re: ACCESS TO UPDATES"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 8 Nov 2003 11:51:47 -0800
Hi folks
I have an minor problem - I am trying to create an vbs
script which can modify the DACL for an given file - but I
am not sure how to do - can somebody help?? I have this
piece of code:
' Obtain the trustee for each access control entry (ACE)
and change the permissions
' in the AccessMask for each ACE to read, write, and
delete.
For each wmiAce in DACL
if (LCase(wmiAce.Trustee.Domain) = LCase("BUILTIN")) Then
???? how do I remove this ACL from the DACL ???
wscript.echo "Removing buildin account"
end if
next
Can somebody help me how to remove the ACL from the DACL ??
Kind regards
Thomas Iwang
- Next message: jay: "IE Explorer Home Page"
- Previous message: Steven L Umbach: "Re: ACCESS TO UPDATES"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|