/build/static/layout/Breadcrumb_cap_w.png

[PS] Cloning the ACLs of an directory in another directory

HI

In Windows 7, I have two directories with some different permissions.

Using PowerShell, as do I set the two directories so that it have the same permissions?

In other words, how do I remove all the ACLs from a directory to set the ACLs of another directory?

THANKS

BYE

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 13 years ago
Red Belt
0
I don't know PS particularly well so there may well be a native method to do what you're asking. What I *do* know is that the freeware tool SetACL can output DACLs to a file which can then be used to restore to either the same folder or another.
Posted by: balubeto 13 years ago
Senior Yellow Belt
0
ORIGINAL: VBScab

I don't know PS particularly well so there may well be a native method to do what you're asking. What I *do* know is that the freeware tool SetACL can output DACLs to a file which can then be used to restore to either the same folder or another.



Unfortunately, I need to write a script in PowerShell to do this without using other utilities. So how do I get this script?

THANKS

BYE
Posted by: anonymous_9363 13 years ago
Red Belt
0
Is it me? Is it? Is there some reason why Google is such a mystery? I can't even be bothered to load up LMGTFY. Clues:

Get-ACL
Set-ACL
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ