/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

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.
Answered 08/10/2010 by: VBScab
Red Belt

Please log in to comment
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
Answered 08/10/2010 by: balubeto
Senior Yellow Belt

Please log in to comment
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
Answered 08/10/2010 by: VBScab
Red Belt

Please log in to comment