|
Posted by Roger Abell [MVP] on February 14, 2006, 12:14 am
If you were Registered and logged in, you could reply and use other advanced thread options
cacls C:\Folder1 > c:\folder1-report.txt
cacls C:\Folder1 /g users:r
cacls C:\Folder1 /e /r users
first lets you know what accounts did have what grants (or denies)
second resets so only Users has Read
third removes the one known grant to Users
--
Roger Abell
Microsoft MVP (Windows Server : Security)
> How can I remove all permissions from a folder, using a command or a
> vbscript?
>
> With cacls command is possible remove permissions, but we need to know who
> have permission before.
>
> With cacls is possible have some like:
> cacls C:\Folder1 /E /R everyone
>
> But is not possible do it for all groups and users. Some like:
> cacls C:\Folder1 /E /R *
>
> Tks,
> Rui Oliveira
>
|